日期:2014-05-18 浏览次数:20834 次
CREATE TABLE [dbo].[stu](sno INT UNIQUE) CREATE TABLE dbo.sjb(sno INT CONSTRAINT sno_fk REFERENCES dbo.[stu](sno) ON DELETE CASCADE )
------解决方案--------------------
create table B(B_id, A_id int foreign key(A_id) references A(A_id) ON DELETE CASCADE)
------解决方案--------------------
on delete cascade
------解决方案--------------------