I am trying to add a check constraint on multiple columns in Oracle table that restricts user from inserting NULL into 3 columns simultaneously. However each column in the table can accept NULL independently but not 3 of the columns together.
ALTER TABLE table1 ADD CONSTRAINT CK_not_null
CHECK (col1 IS NOT NULL AND col2 IS NOT NULL AND col3 IS NOT NULL);
This check constraint is not allowing NULL in any of the three columns. Any thought on this?