27,582
社区成员




--表存在时,增加..
alter table table3 add constraint FK_table3 foreign key references Table1(ID) ON DELETE CASCADE
---列子
create table Table1(ID int primary key)
-----
create table Table3(ID int foreign key references Table1(ID) ON DELETE CASCADE)
create table Table1(ID int primary key)
-----
create table Table3(ID int foreign key references T(ID) ON DELETE CASCADE)