
CREATE TABLE 朋友
([朋友ID] AUTOINCREMENT,
[姓氏] text,
[名字] text,
[出生日期] date,
[电话] text,
[备注] memo,
PRIMARY KEY ([朋友ID]));
其中,AutoIncrement 为自动编号数据类型
可以定义init和step的值:
create table tbluserinfo(user_id autoincrement(200,50));
用counter来替换autoincrement也可以。
如果想修改这个表的自动增加字段的init和step值时可以这样:
alter table tblorder alter column orderid counter (2000, 50)