查询table 下一个将要生成的id值
SELECT IDENT_CURRENT(‘table‘) + IDENT_INCR(‘table‘);
查询table当前最大的id值,自增序号
SELECT IDENT_CURRENT(‘table‘) ;
当前表设置的递增数,默认为1.
SELECT IDENT_INCR(‘table‘);
sql server 查询 某张表将要生成的id
原文:https://www.cnblogs.com/ming-blogs/p/10625420.html