首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
Safest way to get last record ID from a table
后端
未结
关注
8
1139
遇见更好的自我
2020-12-03 09:53
In SQL Server 2008 and higher what is the best/safest/most correct way
to retrieve the ID (based on autoincrementing primary key) out of the database table?>
8条回答
离开以前
(楼主)
2020-12-03 10:33
1. SELECT MAX(Id) FROM Table
0
讨论(0)
查看其它8个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题