求救有关not in的问题
select distinct [SRV_PART_NO],[SRV_DESC],[HW_DESC],[HW_PART_NO],[AIC report date][Win8 version] from win7_64_Split_Endwhere 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)
--> 测试数据: @adeclare @a table (col int)insert into @aselect 1 union allselect 2 union allselect 3--> 测试数据: @bdeclare @b table (col int)insert into @bselect 2 union allselect 3 union allselect 4 union allselect nullselect * from @a where col not in (select col from @b)
[解决办法]