22,210
社区成员
发帖
与我相关
我的任务
分享
select distinct b.*
into #tb
from b表 b
inner join a表 a
on b.jlid=a.id
where a.sftx=0
truncate table b表
insert into b表
select * from #tb
select distinct jlid,time
into #tb
from b表 b
inner join a表 a
on b.jlid=a.id
where a.sftx=0
truncate table b表
insert into b表(jlid,time)
select jlid,time from #tb