SQLiteException: near “references”: syntax error

前端 未结 1 788
自闭症患者
自闭症患者 2021-01-25 09:32
String CREATE_ASSIGNMENTS_TABLE= \"create table \"
        + ASSIGNMENTS + \"(\" + TITLE
        + \" text not null, \" + DESCRIPTION
        + \" text not null, \" + RE         


        
1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-25 10:10

    REFERENCES is a keyword in SQL syntax. Either change the column name or quote it in backticks:

    `REFERENCES`
    

    0 讨论(0)
提交回复
热议问题