标签:end sql font rect nat tno cot use card
-- Create table create table DEPT2 ( DEPTNO NUMBER(2) not null, DNAME VARCHAR2(14), LOC VARCHAR2(13) ); alter table DEPT2 add constraint DEPT_PK primary key (DEPTNO); ------demo.ctl LOAD DATA INFILE * ---*表示数据就在控制文件中 INTO TABLE DEPT2 INSERT ---默认的加载方式 FIELDS TERMINATED BY ‘,‘ ---分隔符 (DEPTNO, DNAME, LOC ) ---默认类型为char(255) BEGINDATA 10,Sales,Virginia 20,Accounting,Virginia 30,Consulting,Virginia 40,Finance,Virginia sqlldr userid=scott/dcjet control=/home/oracle/demo.ctl log=/home/oracle/demo.log bad=/home/oracle/demo.bad discard=/home/oracle/demodiscard.log direct=true parallel=true --direct和parallel单独为true时没有任何问题 --direct和parallel同时为true时当前控制文件的加载方式必须为APPEND,且不能有索引
标签:end sql font rect nat tno cot use card
原文地址:http://www.cnblogs.com/xuzhong86/p/7636113.html