LOAD DATA自动增长ID

深圳-东东(***93547) 08:50:43 
create table testb (id NUMBER,name varchar2(30),start_date TIMESTAMP,pk int);
create sequence seqtest;
-----testb.ctl-------
LOAD DATA
APPEND INTO TABLE testb
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
(
id,
start_date "SYSTIMESTAMP",
name,
pk "seqtest.nextval"
);
------
b.txt
-------
1,,1
55,,88
85,,7
-----
sqlldr scott/chen control=/home/oracle/testb.ctl data=/home/oracle/b.txt 
深圳-东东(***93547) 08:51:01 
一般这样做就可以做到自动增长了 

你可能感兴趣的:(LOAD DATA自动增长ID)