Thread: sqlldr - loading date
05-13-04, 16:23 #1Registered User
- Join Date
- May 2004
Unanswered: sqlldr - loading date
My data file had date in the format YYMMDDHHMISS
I need to insert this field into DATE field as MM/DD/YY HH24:MIS
I am doing this
date_part FILLER POSITION (56:61),
time_part FILLER POSITION (62:67),
req_date EXPRESSION "to_date(to_char(:date_part,'99/99/99')||' 'to_char(:time_ part,'99:99:99'),'MM/DD/YY HH24:MIS')",
But I get the error :
SQL*Loader-291: Invalid bind variable DATE_PART in SQL string for column REQ_DATE
Any help ?
05-13-04, 16:51 #2Registered User
Provided Answers: 1
- Join Date
- Aug 2003
- Where the Surf Meets the Turf @Del Mar, CA
>My data file had date in the format YYMMDDHHMISS
>I need to insert this field into DATE field as MM/DD/YY HH24:MIS
You need to get clear in your head the difference between data types; such as characters and DATES.
An object of type DATE in the database has NO formatting characters, such as ':' or '/', in it.
Is the field in the table a DATE or a VARCHAR2?
Pick one & then use appropriate conversion or formatting function(s).You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Good judgement comes from experience. Experience comes from bad judgement.