test 表
id identity
name char(8)
在sybase中自增长的字段手动插值时,set identity_insert test on
1> insert into test (id,name) values (5,"succ")
2> go
sybase的自增列时,set identity_insert test off
1> insert into test(name) values("succ")
2> go
本文介绍在Sybase数据库中如何使用set identity_insert指令控制自增长字段的手动插入操作。通过开启和关闭该功能,可以实现对带有自增属性的表进行特定ID值的数据插入。
test 表
id identity
name char(8)
在sybase中自增长的字段手动插值时,set identity_insert test on
1> insert into test (id,name) values (5,"succ")
2> go
sybase的自增列时,set identity_insert test off
1> insert into test(name) values("succ")
2> go

被折叠的 条评论
为什么被折叠?