【发布时间】:2023-04-09 01:31:01
【问题描述】:
这是我的问题;我正在从资产创建表,所有表都在一个文件中,其余表不会产生任何问题。
这个表格正在报告:
04-29 22:13:09.434: E/SQLiteDatabase(6378): android.database.sqlite.SQLiteException:表gym_exercise 没有 名为 date: 的列,编译时:INSERT INTO gym_exercise(cals,date) VALUES (?,?)
这是创建语句
create table gym_training (_id integer primary key autoincrement, cals integer not null, date text not null);
我尝试重命名此列,尝试不为该列插入值,然后出现约束错误。
【问题讨论】: