如过我想实现下面错误的外键定义,可以有什么另外的方法去实现呢?
test1的主健一定是(a,b),而test2的外键一定是b
请各位高手指教create table test1
(
a int ,
b int ,
primary key (a,b)
)creat table test2
(
a int,
b int,
foreign key (b) references test1 (b)
)