我有两张桌子:
T1(A,B)
哪里
create table T1(
A char(2) NOT NULL primary key check(T1.A not in T2.B),
B char(2) unique
);
T2(C,B)
在哪里
create table T2(
C number(2) primary key,
B char(2) unique references T1 check(T1.B not in T1.A)
);
在这里,T2.B
参考T1.A
。
我的问题是,我怎样才能将检查约束设置为允许的值与允许的T1.A
值不同?T1.B
T1.A
T2.B