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
答案 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 ......