티스토리 뷰

공부

[MySQL] rename table, column, type

승가비 2020. 10. 16. 19:04
728x90
ALTER TABLE `as-is` RENAME `to-be`;

ALTER TABLE `table` CHANGE `as-is` `to-be`;

ALTER TABLE `table` MODIFY `column` `type`;

https://jybaek.tistory.com/277

 

[mysql] 테이블 이름 변경 / 테이블 컬럼 이름,타입 변경

테이블 이름 변경 alter table 현재_테이블_이름 rename 새로운_테이블_이름; mysql> show tables; +----------------+ | Tables_in_oops | +----------------+ | old_table | +----------------+ 1 row in set (0..

jybaek.tistory.com

 

728x90

'공부' 카테고리의 다른 글

[Django] check number of array by templates  (0) 2020.10.17
[Logstash] multiple inputs  (0) 2020.10.16
[Network] L4 system deploy  (0) 2020.10.16
[Java] spark.sql.functions  (0) 2020.10.16
[React] change port  (0) 2020.10.16
댓글