Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sql loader problem
> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org]On Behalf Of david wendelken
> Sent: Thursday, July 22, 2004 10:11 AM
> To: oracle-l_at_freelists.org
> Subject: sql loader problem
>=20 >=20 >=20
>=20
>=20 >=20
>=20
> LOAD DATA
> INFILE '1244.csv'
> BADFILE '1244.bad'
> DISCARDFILE '1244.dsc'
> APPEND
> INTO TABLE ltest REPLACE
> FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'=20
> TRAILING NULLCOLS
> (DATACALL INTEGER(2)
> ,QUESTIONID INTEGER(10)
> ,ORGID INTEGER(10)=20
> ,ANSWER01 VARCHAR
> ,ANSWER02 VARCHAR
> ) =20
try using LOAD DATA INFILE '1244.csv' BADFILE '1244.bad' DISCARDFILE '1244.dsc' APPEND INTO TABLE ltest REPLACE FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'=20 TRAILING NULLCOLS (DATACALL ,QUESTIONID ,ORGID ,ANSWER01 ,ANSWER02 ) =20
All your input data is really 'CHAR' (it is a text file, is it not?), =
and that
is the default.
Specifying 'INTEGER' states that your input are binary integers (and if they were, we could not read them in this email).
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Jul 22 2004 - 09:20:18 CDT