SQLite Android INNER JOIN sqlite.SQLiteException

时间:2016-04-15 15:17:14

标签: java android sqlite android-studio android-sqlite

This is the query I am trying to run that will do a join on two tables in my DB

Cursor cur = database.rawQuery("SELECT Media.Name, Media.Location, Game.Name, Game.Format " +
                               "FROM Media INNER JOIN Game " +
                               "On Media._id = Game.MediaId",
                               null);
return cur

It keeps flagging this error but everything seems to be correct??

android.database.sqlite.SQLiteException: 
near "INNER": syntax error (code 1): , while compiling: SELECT Media.Name, Medi....

0 个答案:

没有答案