컬럼 추가
alter table `table` add `col_name` type ...;
컬럼 삭제
alter table `table` drop column `col_name`;
컬럼 이름 변경
alter table `table` change `old_name` `new_name` type ...;
컬럼 타입 수정
alter table `table` modify `col` new_type ...;
'MySql' 카테고리의 다른 글
[MariaDB] Distance 쿼리 Spatial Index 적용해서 성능 늘리기 (0) | 2022.03.17 |
---|---|
[Mariadb] ST_DISTANCE_SPHERE 생성하기 (0) | 2022.03.17 |
[Mysql] U_ST_DISTANCE_SPHERE 직접 구현하기 (0) | 2022.03.17 |
[Mysql] 테이블 제약사항 확인, 외래키 삭제, 추가, 제약 조건 무시 (0) | 2021.09.08 |