Sqlsever:

获取主键当前最大值:

select ident_current('tablename');

05-11 11:30