테이블에서 같은 스키마 구조 테이블로 데이터 복사하기.
1, 기존 테이블 조회
select * from test_tbl2
=== <Result of SELECT Command in Line 1> ===
a b c
===============================================
1 '200.100.50.1' 03/13/2009
2 '200.100.50.1' 03/13/2009
3 '200.100.50.1' 03/13/2009
4 '200.100.50.1' 03/13/2009
5 '200.100.50.1' 03/13/2009
6 '200.100.50.1' 03/13/2009
7 '200.100.50.1' 03/13/2009
8 '200.100.50.1' 03/13/2009
9 '200.100.50.1' 03/13/2009
2, 복사 대상 테이블과 동일한 테이블 생성
create table test_tbl_new(a int, b varchar(30), c date)
3, 데이터 복사
insert into test_tbl_new select * from test_tbl2
4, 데이터 확인
select * from test_tbl_new
=== <Result of SELECT Command in Line 1> ===
a b c
===============================================
1 '200.100.50.1' 03/13/2009
2 '200.100.50.1' 03/13/2009
3 '200.100.50.1' 03/13/2009
4 '200.100.50.1' 03/13/2009
5 '200.100.50.1' 03/13/2009
6 '200.100.50.1' 03/13/2009
7 '200.100.50.1' 03/13/2009
8 '200.100.50.1' 03/13/2009
9 '200.100.50.1' 03/13/2009