How do I auto increment
the primary key
in a SQL Server
database table, I've had a look through the forum but can't see how.
(我如何在SQL Server
数据库表中auto increment
primary key
,我已经浏览了论坛,但看不到如何。)
I've looked the the properties but can't see an option, I have seen an answer where you go to the Identity
specification property and set it to yes and set the Identity increment
to 1, but that section is grayed out and I can't change the no to yes.
(我看过属性,但看不到选项,我看到了一个答案,您可以转到Identity
规范属性,并将其设置为是,并将Identity increment
设置为1,但是该部分显示为灰色,我可以不要将“否”更改为“是”。)
There must be a simple way to do this but I can't find it.
(必须有一种简单的方法来执行此操作,但我找不到它。)
ask by Ledgemonkey translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…