ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • sql auto_increment 재설정
    카테고리 없음 2012. 8. 9. 14:18


    http://devx.tistory.com/313 


    alter table 테이블명 auto_increment = 시작하고 싶은 숫자;


    예를 들어 테이블 마지막에 5387까지 증가되어 있다면 다음엔 5388이 들어가야 하므로 아래와 같이 alter 해야 한다.

    alter table 테이블명 auto_increment = 5388;


Designed by Tistory.