34,594
社区成员
发帖
与我相关
我的任务
分享
select at_temp.* from at_temp where not exists(select 1 from at where at.a = at_temp.a and at.b = at_temp.b and at.c = at_temp.c)
SELECT
name,
classid,
counts,
classname
FROM
merchant
WHERE
counts in
(
SELECT
max(counts)
FROM
merchant
GROUP BY
classname
)
ORDER BY
counts asc
insert into AT
select * from A_Temp from a
where not exists(select 1 from at where a.a=at.a and a.b=at.b and a.c=at.c)
select at_temp.* from at_temp where not exists(select 1 from at where at_temp.a = at.a and at_temp.b = at.b and at_temp.c = at.c)
insert into AT
select * from A_Temp a
where not exists(select 1 from at b where a.a=b.a and a.b=b.b and a.c=b.c)
insert into AT
select * from A_Temp from a
where not exists(select 1 from at b where a.a=b.a and a.b=b.b and a.c=b.c)
select at_temp.* from at_temp where not exists(select 1 where at_temp.a = at.a and at_temp.b = at.b and at_temp.c = at.c)
insert into AT
select * from A_Temp from a
where not exists(select 1 from at b where a.a=at.a and a.b=at.b and a.c=at.c)