ios - The query is not working? -
in application use sqlite backing store.for use create 2 tables surgeon , schedule surgeon having columns name(varchar),id(int) , schedule having id(int),surgeon(int),values(varchar).
the surgeon column in schedule table pointing id column in surgeon table. use below query select values schedule table surgeon id=1
select schedule.values,name schedule,surgeon schedule.surgeon==surgeon.id , surgeon.id=2
but got error below
sqlitemanager: sql syntax error: select schedule.values,name schedule,surgeon schedule.surgeon==surgeon.id , surgeon.id=2 [ near "values": syntax error ]
i don't know went wrong, have't used database before forgive me if question basic
you have named 1 of columns in schedule as values change else not key word sqlite. should not use key string name column first have take @ keys in sqlite
Comments
Post a Comment