如何设置Microsoft SQL字段作为标识,但以一定的数字开头? [英] How can I set a Microsoft SQL field as identity but to START with a certain number?
本文介绍了如何设置Microsoft SQL字段作为标识,但以一定的数字开头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将Microsoft SQL字段设置为标识,但以一定的数字开头?
How can I set a Microsoft SQL field as identity but to START with a certain number?
推荐答案
Take a look at this msdn post, the value from which you want to start your identity is called seed.
如果要通过GUI进行操作,则可以选择该列及其属性,在Identity Specification部分的IsIdentity中查找IsIdentity并将其设置为true,然后查找Identity Seed并指定值您也可以指定增量.
If you want to do it from the GUI, then you can select that column and in its properties, in the identity specification section look of the IsIdentity and set it to true, then look for Identity Seed and specify the value which ever you want, you can also specify the increment as well.
这篇关于如何设置Microsoft SQL字段作为标识,但以一定的数字开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文