제목 alter table
이름 고재욱 날짜 2005-02-04 조회 11887
mysql 에서 테이블을 만들었을때 테이블을 변경 하는 명령 입니다.

alter table 테이블명 옵션 파일

형태로 쓰입니다.

ex)
alter table exam add abc int(10) not null;
테이블에 abc라는 필드를 추가하는 명령입니다.

alter table change abc abc varchar(10) not null;
필드의 자료형을 변경하는 명령

alter table change abc abc_a varchar(10) not null;
필드의 이름을 변경하는 명령입니다.  

Copyright 2002-2025 by Induk University Gamejigi, 교수 윤형태 (yht@induk.ac.kr). All right reserved.