How can one skip any number of rows while loading the DB
tables with SQL Loader? Similarly how can one skip any
column?
Answer Posted / harikanth
LOAD DATA
INFILE 'Fullalbum.csv'
truncate
INTO TABLE DP_fa
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
(
field2 FILLER,--for skipping the first column
sno,
performance_ky,
performance_nm,
isrc,
track_media_ky,
song_nm,
full_album,
country_nm,
isrc_country_cd
)
here first column will be skipped.
if you want to skip number of rows do the following
in cmd prompt
enter the commands like...
sqlldr <username>/<password>@<databasename>
cotrol='<location of control file>' skip=n<number of rows
that you want to skip>
Thanks,
Harikanth.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a procedure in oracle?
Is insert autocommit in oracle?
How to establish administrator authentication to the server?
How to create a table interactively?
How to convert characters to times in oracle?
What happens to the current transaction if the session is killed?
Can we write dml statement in function in oracle?
Where do you use decode and case statements?
Explain a data segment?
Explain the use of compress option in exp command.
What is oracle and what are its different editions?
How to rename an index?
Are truncate and delete commands same? If so why?
Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.
How to create a new table by selecting rows from another table?