请问各位大虾:在SQL2000中怎样设置int 为autoincrement ?
来源:百度知道 编辑:UC知道 时间:2024/07/01 15:51:13
autoincrement 是mysql里的吧
你的意思是自增列吧
在创建表的时候将列设置为identity类型的
比如
create table test
(
id int identity(1,1),
content varchar(10)
)
id列就是从1开始每次自增1的列。
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/07/01 15:51:13
autoincrement 是mysql里的吧
你的意思是自增列吧
在创建表的时候将列设置为identity类型的
比如
create table test
(
id int identity(1,1),
content varchar(10)
)
id列就是从1开始每次自增1的列。