Null Values In Sql Loader: Handle
A keyword used with NULLIF to identify fields containing only whitespace.
By default, if a field in the data file is empty (contains no data between delimiters), SQL*Loader attempts to load it as a . However, if the column in the database has a NOT NULL constraint, the record will be rejected and moved to the .bad file. 2. Using the NULLIF Clause Handle Null Values In Sql Loader
The DEFAULTIF clause works similarly to NULLIF , but instead of forcing a NULL, it tells SQL*Loader to use the defined for that column. column_name DEFAULTIF (column_name = '0') Use code with caution. Copied to clipboard 4. Handling Trailing Nulls A keyword used with NULLIF to identify fields
Handling null values in SQL*Loader involves managing how data from your flat file is interpreted and loaded into Oracle database tables. You can control this behavior using specific clauses in your control file ( .ctl ). 1. Default Behavior Copied to clipboard 4