목록Rename (1)
오늘도 한 뼘 더

# 테이블 하나 이름 변경 RENAME TABLE old_table TO new_table; ALTER TABLE old_table RENAME new_table; # 테이블 여러 개 이름 변경 RENAME TABLE old_table1 TO new_table1, old_table2 TO new_table2; # 다른 데이터베이스, 스케마로 테이블 이동 RENAME TABLE current_db.table_name TO new_db.table_name;
Study/MySQL
2023. 6. 15. 13:18