Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Need to call user function in sqlldr

user11942774Jun 8 2017 — edited Jun 8 2017

Hi All,

I am trying to use sqlldr to load a csv file. From this data i need to check if a perticular column say col3 value data exists in a table, if so load this data.

i am trying to call this function to load the data,

The code which i have used. This loads the data but the problem is i am unable to skip the records using col3 for which the there is no records in table.

Can you please help me out on this.

Also is there a way i can use the function or select statement in when clause?

load data

infile '/data/test.dat'

truncate

into table 'test'

fields terminated by ','

trailing nullcols

(

col1

col2

col3 "func_val(:col3)"

col4)

This post has been answered by Solomon Yakobson on Jun 8 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2017
Added on Jun 8 2017
6 comments
340 views