(3) |
(3) |
(5) |
(1) |
(5) |
(9) |
(7) |
(9) |
(5) |
(2) |
(1) |
(8) |
(7) |
(4) |
(17) |
(5) |
|
Location |
United States |
|
IP Address |
3.131.95.159 |
|
2025. 05 |
| | | | 1 | | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
|
|
Category |
Languages, SQL |
Writer |
김태우 |
Date |
2011-11-16 17:22:05 |
Visit |
5307 |
DB 테이블 복사(Table copy) |
|
DB별 테이블 복사
SQL DB Tabel Copy
MySql & Oracle
create table new_table_name as select * from original_table_name
: 테이블 및 데이터 복사
create table new_table_name as select * from original_table_name where 1 = 0;
: 테이블 만 복사
MS-SQL
select * into new_table_name from original_table_name where '1'='1'
: 테이블 및 데이터 복사
select * into new_table_name from original_table_name where '1'='2'
: 테이블 만 복사
|
|
Tags |
sql, create table, 테이블 복사, table copy |
Relation Articles
|