I saw multiple posts about getting the last auto increment value. But my question is Where will these autoincrement values stored in SQL?
Thanks in advance
Actually auto increment value is managed by DBMS. You can just get IDENT_CURRENT and IDENT_INCR value by request to DBMS.
Like. select IDENT_CURRENT('tblname') => get the current auto incremented record value
select IDENT_INCR('tblname') => get increment rate.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.