0
我有這個表插入行的表AUTOINCREMENT列
CREATE TABLE "INGREDIENTS" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ,
"material" VARCHAR,
"type" VARCHAR,
"company" VARCHAR
)
,我想添加一行
INSERT INTO "INGREDIENTS" VALUES('material1','type1','company1');
,我得到一個錯誤,... has 4 columns but 3 values supplied
然而,我想要該行從上一行獲取id值+1。