Set char(count) for load data statement : CSV Load « Table « Oracle PL / SQL






Set char(count) for load data statement

 

create table dept
( deptno  number(2),
  dname   varchar2(14),
  loc     varchar2(13)
)
/

LOAD DATA
INFILE *
INTO TABLE DEPT
REPLACE
( DEPTNO      position(1) char(2),
  DNAME       position(*) char(14),
  LOC         position(*) char(13),
  ENTIRE_LINE position(1) char(29)
)
BEGINDATA
10Accounting    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.Indicate columns in load data statement
5.Set value position in load statement
6.Set ENTIRE_LINE in load data statement
7.Leave start position open in 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