select ident_current('表名')+1 下一值
IDENT_INCR ( 'table_or_view' ) -- 获得步长
IDENT_SEED ( 'table_or_view' ) -- 获得种子
update tbl_recordsLog set acStockId=(case when acStockId>? then acStockId else ? end) where depart=?
IDENT_INCR ( 'table_or_view' ) -- 获得步长
IDENT_SEED ( 'table_or_view' ) -- 获得种子
update tbl_recordsLog set acStockId=(case when acStockId>? then acStockId else ? end) where depart=?