数据库怎样用函数自动生成id号

谢谢各位大侠了
2025-02-25 06:06:55
推荐回答(2个)
回答1:

--------
把主键设成 identity(1,1)

回答2:

create table table_name(
id int identity(1,1) not null Primary(Key),
.....
)