카테고리 없음

[MySQL] AUTO_INCREMENT 값 가져오는 방법

seandoesdev 2023. 10. 31. 13:16
SELECT AUTO_INCREMENT
FROM information_schema.tables
WHERE table_name = 'table_name'
AND table_schema = DATABASE( ) ;

특정 테이블에서 사용되는 AUTO_INCREMENT의 값을 가져오는 SQL문이다.