SqlServer 不是主键 如何自增:
INSERT INTO dbo.表 VALUES('14-19周',0,(select COUNT(1) from dbo.表)+1)
(select COUNT(1) from dbo.表)+1 为自增列
2024-01-05 11:14:10
SqlServer 不是主键 如何自增:
INSERT INTO dbo.表 VALUES('14-19周',0,(select COUNT(1) from dbo.表)+1)
(select COUNT(1) from dbo.表)+1 为自增列