Why ORA-01400 Happens
- Classic Oracle gotcha: empty string '' is treated identically to NULL in Oracle VARCHAR2 columns!
- Omitted column in INSERT list without a DEFAULT clause.
Recommended Resolution
Remember that '' equals NULL in Oracle (unlike PostgreSQL). Supply a non-empty sentinel or explicit DEFAULT value on the column.
SQL Diagnostic & Fix Example
-- Fails in Oracle if description is NOT NULL: INSERT INTO notes (id, description) VALUES (1, ''); -- '' IS NULL!