"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);";
答案 0 :(得分:4)
您输入的拼写错误:FOREING
应为FOREIGN