Indicate columns in load data statement : CSV Load « Table « Oracle PL / SQL





Indicate columns in load data statement

 

create table dept
( deptno  number(2),
  dname   varchar2(14),
  loc     varchar2(13)
)
/
LOAD DATA
INFILE *
INTO TABLE DEPT
REPLACE
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
( DEPTNO,
  FILLER_1 FILLER,
  DNAME,
  LOC
)
BEGINDATA
20,Something Not To Be Loaded,Accounting,"BC,USA"



drop table dept;

 










Related examples in the same category

1.Load CSV data to a table
2.Load data and set field terminated sign and OPTIONALLY ENCLOSed sign
3.FIELDS TERMINATED BY WHITESPACE
4.Set value position in load statement
5.Set ENTIRE_LINE in load data statement
6.Leave start position open in load data statement
7.Set char(count) for load data statement
8.Set date format in load data statement
9.Use string function in load data statement
10.Set entry line in load data statement
11.Trailing null columns when loading data
12.use case statement to check the value in load data statement
13.Use user-defined columns in load data statement