vendredi 8 mai 2015

Syntax error on this line of code?

I'm a beginner trying to create a SQLite Database in an android application, trying to use:

public String CREATE_QUERY = "CREATE_TABLE " +TableInfo.TABLE_NAME+
            " (" +TableInfo.HOME_TEAM+ " TEXT, " +TableInfo.AWAY_TEAM+ " TEXT);" ;

No errors displaying until runtime which gives: SQLiteException: near "CREATE_TABLE": syntax error: , while compiling: CREATE_TABLE Team_info (Home_team_name TEXT, Away_team_name TEXT);

Thanks for the help!

Aucun commentaire:

Enregistrer un commentaire