Home » SQL & PL/SQL » SQL & PL/SQL » sqlldr: when clause
sqlldr: when clause [message #113264] Thu, 31 March 2005 22:33 Go to next message
kuul13
Messages: 8
Registered: March 2005
Junior Member
i want to restrict those rows which have 'Trailer Record' or '.' in CARRIER field. Something like

when carrier <> 'Trailer Record'
when carrier <> '.'

record layout
carrier, id, state
google, 12122, NY
jamees, 12332, CA
Trailer Record,,
.

want output records in table
google, 12122, NY
jamees, 12332, CA

what should be my when clause???

thanks in advance
sri
Re: sqlldr: when clause [message #113286 is a reply to message #113264] Fri, 01 April 2005 01:30 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9097
Registered: November 2002
Location: California, USA
Senior Member
load data
infile 'your_data_file.dat'
into table your_table
when carrier <> 'Trailer Record' and carrier <> '.'
fields terminated by ', '
trailing nullcols
(carrier, id, state)
Re: sqlldr: when clause [message #113581 is a reply to message #113286] Mon, 04 April 2005 13:53 Go to previous message
kuul13
Messages: 8
Registered: March 2005
Junior Member
Thanks Barbara for your prompt answer. It worked for me but struck in another issue. I will post it as different topic. Thanks again.
Sri
Previous Topic: FOR loop - dumping value for each iteration
Next Topic: DB links Issue
Goto Forum:
  


Current Time: Sat Jul 06 22:58:39 CDT 2024