本文发表在 rolia.net 枫下论坛control file:
-- load file example
load data
INFILE 'c:\export\sqlldr\JP.txt'
INTO TABLE jobplan
APPEND
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(JPNUM,
DESCRIPTION,
ROWSTAMP SEQUENCE (MAX,1),
JPDURATION,
PRIORITY
)
Description of jobplan:
SQL> desc jobplan;
Name Null? Type
------------------------------- -------- ----
JPNUM NOT NULL VARCHAR2(10)
DESCRIPTION VARCHAR2(100)
JPDURATION NOT NULL FLOAT(126)
LABORCODE VARCHAR2(8)
JP1 VARCHAR2(10)
JP2 VARCHAR2(10)
JP3 NUMBER(10,2)
JP4 VARCHAR2(10)
JP5 NUMBER
LDKEY NUMBER
INTERRUPTABLE VARCHAR2(1)
DOWNTIME VARCHAR2(1)
SUPERVISOR VARCHAR2(8)
CALENDAR VARCHAR2(8)
PRIORITY NOT NULL NUMBER
CREWID VARCHAR2(8)
JP6 VARCHAR2(10)
JP7 VARCHAR2(10)
JP8 VARCHAR2(10)
JP9 NUMBER(10,2)
JP10 DATE
JP11 VARCHAR2(10)
JP12 VARCHAR2(10)
JP13 VARCHAR2(10)
JP14 NUMBER(10,2)
JP15 DATE
JP16 VARCHAR2(10)
JP17 VARCHAR2(10)
JP18 VARCHAR2(10)
JP19 VARCHAR2(10)
JP20 VARCHAR2(10)
JP21 VARCHAR2(10)
JP22 VARCHAR2(10)
JP23 NUMBER(10,2)
JP24 DATE
JP25 NUMBER(15,2)
JP26 NUMBER(15,2)
JP27 VARCHAR2(10)
JP28 VARCHAR2(10)
JP29 NUMBER
JP30 VARCHAR2(1)
ROWSTAMP NOT NULL VARCHAR2(40)更多精彩文章及讨论,请光临枫下论坛 rolia.net
-- load file example
load data
INFILE 'c:\export\sqlldr\JP.txt'
INTO TABLE jobplan
APPEND
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(JPNUM,
DESCRIPTION,
ROWSTAMP SEQUENCE (MAX,1),
JPDURATION,
PRIORITY
)
Description of jobplan:
SQL> desc jobplan;
Name Null? Type
------------------------------- -------- ----
JPNUM NOT NULL VARCHAR2(10)
DESCRIPTION VARCHAR2(100)
JPDURATION NOT NULL FLOAT(126)
LABORCODE VARCHAR2(8)
JP1 VARCHAR2(10)
JP2 VARCHAR2(10)
JP3 NUMBER(10,2)
JP4 VARCHAR2(10)
JP5 NUMBER
LDKEY NUMBER
INTERRUPTABLE VARCHAR2(1)
DOWNTIME VARCHAR2(1)
SUPERVISOR VARCHAR2(8)
CALENDAR VARCHAR2(8)
PRIORITY NOT NULL NUMBER
CREWID VARCHAR2(8)
JP6 VARCHAR2(10)
JP7 VARCHAR2(10)
JP8 VARCHAR2(10)
JP9 NUMBER(10,2)
JP10 DATE
JP11 VARCHAR2(10)
JP12 VARCHAR2(10)
JP13 VARCHAR2(10)
JP14 NUMBER(10,2)
JP15 DATE
JP16 VARCHAR2(10)
JP17 VARCHAR2(10)
JP18 VARCHAR2(10)
JP19 VARCHAR2(10)
JP20 VARCHAR2(10)
JP21 VARCHAR2(10)
JP22 VARCHAR2(10)
JP23 NUMBER(10,2)
JP24 DATE
JP25 NUMBER(15,2)
JP26 NUMBER(15,2)
JP27 VARCHAR2(10)
JP28 VARCHAR2(10)
JP29 NUMBER
JP30 VARCHAR2(1)
ROWSTAMP NOT NULL VARCHAR2(40)更多精彩文章及讨论,请光临枫下论坛 rolia.net