日期:2014-05-18 浏览次数:20828 次
--2
select B.*
from B
where B.B_ID not in (select distinct A_ID from A ) and B.B_INFO in (1,2)
--3 A,B结构一样的话
with TT
as(
select B_id as id,B_info as info
from B
except --主要是这个对比了一下两表差异
select A_id as id,A_info as info
from A)
select * from TT where info in(1,2)