我有一个 sybase 表(“测试”),其中包含以下列:
MyIdentity numberic(9,0)
Name
User
桌子上写满了很多记录。我想将身份列更改为身份。
当前表中的 MyIdentity 没有重复值。我如何更改表并将 MyIdentity 设置为身份?
显然你不能,比如
Create a new Table called test2 with the identity set up
Then
Set Identity_Insert Test2 On
Insert Test2 Select * From Test
Set Identity_Insert Test2 Off
Drop Test and Rename Test 2...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)