SOLVED
ORA-02438: Column check constraint cannot reference other columns
Asked by OracleDba••13 views•oracle
123456789101112131415161718192021222324252627282930313233
ORA-02438: Column check constraint cannot reference other columns
ORA-02438: Column check constraint cannot reference other columns
Cause:
attempted to define a column check constraint that references another column.
Action:
define it as a table check constraint.
Scenario 1: When you really are referring to other column in Create statement
SQL> create table test_table
2 (
3 id number(10),
4 name varchar2(200) check (age >= 0),
5 age number(3)
6 );
name varchar2(200) check (age >= 0),
*
ERROR at line 4:
ORA-02438: Column check constraint cannot reference other columns#oracle#error