필수조건,
* select 할 table과 insert 할 table의 컬럼은 일치해야 함.
방법,
1. 기본사용
insert into [table] select * from [table] where [조건];
2. 컬럼선택 사용
insert into [table] (column1, column2, column3) select column1, column2, column3 from [table] where [조건];
반응형
'Mysql' 카테고리의 다른 글
[MySQL] 텀블러의 MySQL 대용량 데이터 관리 전략 (0) | 2021.06.22 |
---|---|
MySQL 5.7 세팅 (CentOS7) (0) | 2019.12.03 |
MySQL Workbench 로 DB 업데이트 하기 (0) | 2018.07.17 |
Mysql 백업 mysqldump 사용 (0) | 2017.06.20 |
mysql table 초기화 (0) | 2015.07.14 |