Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SQLLDR contrl file syntax question

SQLLDR contrl file syntax question

From: barry <bbulsara23_at_hotmail.com>
Date: 5 Jun 2003 02:48:59 -0700
Message-ID: <747f1dec.0306050148.69413029@posting.google.com>


Hi, I have a contrived SQLLDR control file below to import data into an Oracle database based on the first few characters for each line in the file 'test.dat'. Of course there is no operator LIKE as part of the WHEN clause (but it works conditionally when I use = or <> in place of LIKE, of course not giving me the desired input). Anything obvious I am missing or am I looking at other alternatives (like using a file containing a subset of test.dat with the entries I need to import etc). No obvious alternatives stick out to me in a90192.pdf. Currently using Oracle 8/9 on a Winboxes. Thank you
Barry

LOAD DATA
INFILE 'c:\test\test.dat'
INTO TABLE tblTest
REPLACE
WHEN relevantInfo LIKE '876%'
FIELDS TERMINATED BY ',' optionally enclosed by '"' ( relevantInfo CHAR
  otherInfo CHAR
) Received on Thu Jun 05 2003 - 04:48:59 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US