为什么在创建表格时出现sqlit错误?

时间:2018-08-18 16:22:09

标签: android sqlite

有人帮我吗?这是我的表格创建命令。

private final static String CREATE_MOVIE_TABLE="CREATE TABLE IF NOT EXISTS " 
+MOVIE_TABLE_NAME+ " ("
+ _ID + " INTEGER PRIMARY KEY AUTOINCREMENT ," + MOVIE_NAME + " 
VARCHAR , "+ COUNTRY_NAME + " VARCHAR , "
+ GENRE + " VARCHAR ,"+ GENRE + " VARCHAR , "+ RELEASE_DATE + " VARCHAR , " + 
QUALITY + " VARCHAR);";

1 个答案:

答案 0 :(得分:1)

外观:+ GENRE + " VARCHAR ,"+ GENRE + " VARCHAR
您尝试两次创建同一列GENRE