views:

30

answers:

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

It gives an error that near ".": syntax error

+3  A: 

Strings need to be in quotes.

const char *sqlStatement = "select s.id, s.no, s.sc p.na from table1 s inner join table2 p on p.id = s.id";
Jake Petroules
i edited the question. Same error
+2  A: 

missing comma "select s.id, s.no, s.sc, p.na...

yogs