|
# part.sql
create table nsys_partner (
office varchar2(70),
start_date varchar2(30),
kind varchar2(30),
category varchar2(30),
grade varchar2(2),
business_number varchar2(13),
item varchar2(30),
address varchar2(200),
phone varchar2(35),
master_name varchar2(30),
master_email varchar2(40),
depart_name varchar2(30),
depart_email varchar2(40),
department varchar2(30),
business varchar2(40)
);
# partner2.ctl
LOAD DATA
infile 'partner2.txt'
replace
into table nsys_partner
fields terminated by '##'
trailing nullcols
( office,
start_date,
kind,
category,
grade,
business_number,
item,
address,
phone,
master_name,
master_email,
depart_name,
depart_email,
department,
business
)
%% Âü°í·Î ÄÁÆ®·ÑÆÄÀÏ¿¡ replace ¿Ü¿¡ ´ÙÀ½ÀÇ ¿É¼ÇÀÌ °¡´ÉÇÕ´Ï´Ù.
replace Å×À̺íÀÇ ±âÁ¸ ÇàÀ» ¸ðµÎ »èÁ¦(delete)ÇÏ°í insert
append »õ·Î¿î ÇàÀ» ±âÁ¸ÀÇ µ¥ÀÌŸ¿¡ Ãß°¡
insert ºñ¾î ÀÖ´Â Å×ÀÌºí¿¡ ³ÖÀ» ¶§
truncate Å×À̺íÀÇ ±âÁ¸ µ¥ÀÌŸ¸¦ ¸ðµÎ truncate ÇÏ°í insert
$ sqlldr lgnsysedu/educenter2 control=partner2.ctl data=partner2.txt
|