반응형
Get current auto_increment value
현재의 auto increment 값을 얻어오려면 아래의 쿼리를 사용하면 된다.
SELECT auto_increment FROM information_schema.tables WHERE table_schema='DBNAME' AND table_name='TABLE NAME'
반응형
'Coding > PHP MySQL' 카테고리의 다른 글
MySQL 계정 생성 및 권한주는 방법 (0) | 2018.02.13 |
---|---|
서로 다른 테이블 값 조인(Join) 시키기 (0) | 2017.07.08 |
MySQL CSV into outfile export 시 문제점 (0) | 2017.07.06 |
MySQL Strict mode 해제하는법 (0) | 2017.07.03 |
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 오류해결 (0) | 2017.04.20 |