SQLite column error: table XXX has no column named YYY

前端 未结 3 469
逝去的感伤
逝去的感伤 2021-01-29 07:47

I\'ve looked at the following, among others and have found nothing that matches my problem (as far as I can tell):

android.database.sqlite.SQLiteException: table X has n

3条回答
  •  生来不讨喜
    2021-01-29 08:10

    For others who are having problems with this SQLite error, it appears that it was due in my case to having duplicate column names as pointed out by CL to my post. When I corrected that and reran the code, it worked fine, no error.

    So, make sure that your column names are correct for your insert statement.

提交回复
热议问题