Consider following scenario :
CREATE TABLE test
(
name VARCHAR2(50),
type LONG,
CONSTRAINT c_type CHECK (type IN ('a', 'b', 'c', 'd', 'e', 'f'))
);
I want to alter constraint
c_type and add a new type in check constraint say 'g'.
Now to alter a constraint we need to drop it and recreate it, but I want to drop the constraint only if it do not contains check for type 'g'.
I checked table user_constraints
, it contains column search_condition but problem here is the data type for column "type" is long
which i am not able to compare with varchar
.
How to compare the Long
data type?