반응형
======================================================================================
create.. select..
CREATE TABLE TABLE1 AS SELECT * FROM TABLE2
======================================================================================
insert.. select..
INSERT INTO TABLE1 SELECT FROM TABLE2 [ WHERE 어쩌구 저쩌구 ]
INSERT INTO TABLE1 ( COL1, COL2, COL3 ) SELECT COL1, COL2, COL3 FROM TABLE2 [ WHERE 어쩌구 ]
======================================================================================
LONG 타입 데이터 insert.. select.. 하기
create table t1(t1name long);
create table t2(t2name long);
create global temporary table t_long_temp(text_temp clob);
insert into t_long_temp select to_lob(t1name) from t1;
insert into t2(t2name) select text_temp from t_long_temp;
create.. select..
CREATE TABLE TABLE1 AS SELECT * FROM TABLE2
======================================================================================
insert.. select..
INSERT INTO TABLE1 SELECT FROM TABLE2 [ WHERE 어쩌구 저쩌구 ]
INSERT INTO TABLE1 ( COL1, COL2, COL3 ) SELECT COL1, COL2, COL3 FROM TABLE2 [ WHERE 어쩌구 ]
======================================================================================
LONG 타입 데이터 insert.. select.. 하기
create table t1(t1name long);
create table t2(t2name long);
create global temporary table t_long_temp(text_temp clob);
insert into t_long_temp select to_lob(t1name) from t1;
insert into t2(t2name) select text_temp from t_long_temp;
반응형
'ORACLE > Migration' 카테고리의 다른 글
Table생성 스크립트 파일 뽑아내기 (0) | 2009.08.28 |
---|---|
Dangtong 의 오라클 <Data Pump Export / Import 3편> (0) | 2008.11.07 |
Dangtong 의 오라클 <Data Pump Export / Import 2편> (0) | 2008.11.07 |
10g Data Pump Export / Import 사용하기 (0) | 2008.11.07 |
2G 넘는 파일의 export/import(Unix) (0) | 2007.02.12 |