22,209
社区成员
发帖
与我相关
我的任务
分享
declare @tb table (e int,f int , g int)
insert @tb select
1,1,1 union all
select 2,2,2 union all
select 3,3,3 union all
select 4,4,4
declare @tc table (e int,f int , g int)
insert @tc select
1,1,1
select t.e,t.f,t.g from @tb t,(select * from @tc)tc where
tc.e<>t.e and tc.f<>t.f and tc.g <> t.g