日期:2014-05-18 浏览次数:20573 次
select distinct [SRV_PART_NO],[SRV_DESC],[HW_DESC],[HW_PART_NO],[AIC report date][Win8 version] from win7_64_Split_End where win7_64_Split_End.[SRV_PART_NO] not in (select [SRV PART NO] from Commdity_draft_0228) and win7_64_Split_End.[HW_PART_NO] not in (select [HW PART NO] from Commdity_draft_0228)
--> 测试数据: @a declare @a table (col int) insert into @a select 1 union all select 2 union all select 3 --> 测试数据: @b declare @b table (col int) insert into @b select 2 union all select 3 union all select 4 union all select null select * from @a where col not in (select col from @b)
------解决方案--------------------