我该如何在SQL中生成自动ID? [英] How shall i generate auto id in SQL ?
本文介绍了我该如何在SQL中生成自动ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,我如何在sql Management studio的表中自动生成ID?
Dear friend ,How can i generate ID automatic in table of sql Management studio?
推荐答案
您可能希望为该列设置标识为on - http://technet.microsoft.com/en-in/library/aa933196% 28v = sql.80%29.aspx [ ^ ]。
You might want to set identity to on for that column - http://technet.microsoft.com/en-in/library/aa933196%28v=sql.80%29.aspx[^].
您应该使用列的Identity属性。
请看这里:
http:/ /technet.microsoft.com/en-us/library/ms186775.aspx [ ^ ]
You should use Identity property of the column.
Look here:
http://technet.microsoft.com/en-us/library/ms186775.aspx[^]
这篇关于我该如何在SQL中生成自动ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文