1
那麼你好,我正在與sqlite3數據庫的Android應用程序,你能幫我調試這個代碼,因爲它說的語法錯誤,我找不到錯誤。Sqlite3數據庫創建表錯誤
"CREATE TABLE cancion(id INTEGER PRIMARY KEY, name TEXT, genre_id INTEGER, singer_id INTEGER," +
" FOREING KEY (genre_id) REFERENCES genre(id)," +
" FOREING KEY (singer_id) REFERENCES singer(id));";
String queryGenero = "CREATE TABLE genre(id INTEGER PRIMARY KEY, name TEXT);";
String querySinger = "CREATE TABLE singer(id INTEGER PRIMARY KEY, name TEXT);";
其中順序查詢中被解僱 是您的冷杉語句執行前的queryGenero和querySinger被解僱? – Swapnil