日期:2014-05-18 浏览次数:20626 次
select id from tb1 except select id from tb2
------解决方案--------------------
create view [view_name] as select a.id from 表A a left join 表B b on a.id=b.id where b.id is null
------解决方案--------------------
create tigger test on a for delete as begin delete from b where exists(select 1 from instered where id=b.id) end
------解决方案--------------------