如何在后端获取最后插入记录的Id并在flex中显示
如何从后端获取最后插入记录的 ID 并显示与成功消息相同的信息,如“RECORD INSERTED SUCCESSFULLY AS”+Id in flex... 我正在使用 Toad for sql server.......
How to get an Id of last inserted record from backend and display the same with success message as "RECORD INSERTED SUCCESSFULLY AS" +Id in flex...
am using Toad for sql server.......
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是 SQL Server 2005 或 2008,请使用函数 SCOPE_IDENTITY(),否则使用变量@@IDENTITY。例如,如果您有一个包含自动增量列 id 和列 value 的表:
If you are using SQL Server 2005 or 2008, use the function
SCOPE_IDENTITY()
, otherwise use the variable@@IDENTITY
. For example, if you have a table with an auto-increment column id and a column value: