Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I mask a date from Text File? Help 1

Status
Not open for further replies.

bmann

Programmer
Oct 8, 2002
128
US
I am importing data and I need to mask a date from a text file using Toad. The date looks like this:

2001-04-06 02:15:17


 
thanks nagornyi. But I am getting an error. Her is the error:

ORA-01841: (full) year must be between -4713 and +9999, and not be 0


How do I fix this problem?
 
Looks like some records do not fit into this mask. You may either ignore them using pl/sql exceptions, or fix them manually before converting. Specifically, you may look into the first 4 characters of your data to see what is going wrong with the year. Like
select substr(the_text_field, 1, 4) from the_table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top