我的创建表格代码如下
CREATE TABLE accounttable(id text not null primary key,passwd text not null, type int default 0);
表格有id,passwd,type三列,type是设置为默认值0。插入数据时可以忽略他。但是插入语句是有规定的,像是如下这么写就是错的。
insert into accounttable values('123456','123456');
应该要这么写
insert into accounttable(id,passwd) values('123456','123456');