Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 25 列的 sqlite 表,前 10 列在 function_1 中更新,其余列在 function_2 列中更新。
但是在更新时出现以下错误:
Error: table AirMode has 25 columns but 10 values were supplied.
这清楚地表明,要么应该有一种方法来告诉其余 15 列应该以默认值传递。
如何在不使用默认值的同一查询中添加额外的 15 列?
仅在插入语句中提供要填充的列
insert into your_table (col1, col2, ..., col10) values ('1', '2', ..., '10')