I need to insert NULL into the table whenever the SQL*Loader encounters a bad date (0000-00-00 00:00:00) while reading a .csv file.
The bad date provided in the csv is always 0000-00-00 00:00:00.
I need help figuring out the case for it that handles both a bad date and a correct date.
There are two cases:
- Date in the correct format (YYYY/MM/DD hh24:mi:ss)
- Date in the bad format (0000-00-00 00:00:00)
Initially I had a simple statement in SQL control file as below, now I need to add the case to handle bad date as well.
START_DATE DATE "YYYY/MM/DD hh24:mi:ss" NULLIF (START_DATE = "NULL").
I need an SQL*Loader statement that handles both the above cases.