There are two tables test_1 and test_2. While creating test_2 table with in UPDATE CASCADE constraint. It gives me error. any solution ?
Create table test_1(
test_id numeric(10) NOT NULL,
test_name VARCHAR2(20),
CONSTRAINT test_pk PRIMARY KEY(test_id),
CONSTRAINT test_UQ UNIQUE(test_name));
CREATE TABLE test_2(
test_id1 numeric(20) NOT NULL,
test_name VARCHAR2(20),
CONSTRAINT test2_pk PRIMARY KEY(test_id1),
CONSTRAINT test2_FK FOREIGN KEY(test_name)
REFERENCES test_1(test_name) ON DELETE CASCADE ON UPDATE CASCADE
);