sqlite 插入记录注意项
发布时间:2020-12-12 19:50:19 所属栏目:百科 来源:网络整理
导读:drop table if exists test; create table test( id integer primary key autoincrement , a int, b int, c int ); insert into test values(null,1,2,3); insert into test(a,b,c) values(2,3,4); 用 Sqlite Database Browser 执行 sql 语句时老出错,有如
drop table if exists test; create table test( idintegerprimary keyautoincrement, a int, b int, c int ); insert into test values(null,1,2,3); insert into test(a,b,c) values(2,3,4); 用 Sqlite Database Browser 执行 sql 语句时老出错,有如下要注意的地方 1)integer 不能缩写为 int 2)主键的关键字为primary key 3)自增长的关键字为autoincrement (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |