日期:2014-05-17 浏览次数:20490 次
with cte --查询出所有不应该显示出来的数据列表 as ( select a.备注 from bom a inner join bom b on (a.备注<>b.备注) where b.标志='Y' and a.备注 like 'b.备注%' ) select * from bom t where not exists ( select * from cte where t.备注=cte.备注 )