“”我正在进行内连接时出现语法错误

时间:2010-08-31 11:11:42

标签: iphone objective-c

const char *sqlStatement = "select s.id, s.no, s.sc p.na from table1 s inner join table2 p on p.id = s.id";

它提供an error that near ".": syntax error

2 个答案:

答案 0 :(得分:3)

字符串需要引号。

const char *sqlStatement = "select s.id, s.no, s.sc, p.na from table1 s inner join table2 p on p.id = s.id";

答案 1 :(得分:1)

缺少逗号 “选择s.id,s.no,s.sc,p.na ......