获得新增记录的自增ID值

时间:2009-06-05 阅读: 佚名
INSERT INTO [jcms_normal_system] (Info) VALUES ('测试') select @@identity as id
INSERT INTO [jcms_normal_system] (Info)
VALUES ('测试')
select @@identity as id

[责任编辑:jumbot]

[发表评论] [收藏本页]