当前位置: 代码迷 >> 其他数据库 >> sqlite 中是否不能使用标识列解决办法
  详细解决方案

sqlite 中是否不能使用标识列解决办法

热度:2051   发布时间:2013-02-26 00:00:00.0
sqlite 中是否不能使用标识列
如题

------解决方案--------------------------------------------------------
楼主所谓的 标识列 是指什么?


问题说明越详细,回答也会越准确!参见如何提问。(提问的智慧)

------解决方案--------------------------------------------------------
支持的,就是自增列
sqlite> create table t3 (id integer primary key autoincrement, col2 varchar(32));
sqlite> insert into t3(col2) values('fdjaskldf');
sqlite> select * from t3;
1|fdjaskldf
sqlite> insert into t3(col2) values('fdjaskldffdsa');
sqlite> select * from t3;
1|fdjaskldf
2|fdjaskldffdsa
sqlite>
------解决方案--------------------------------------------------------
支持,不用写自增
insert into tt(f2,f3...) values(....)
  相关解决方案