select top 1000 id into #xxxx from ydsmscdr where getdate()-startdatetime
delete from ydsmscdr where exists(select * from #xxxx where #xxxx.id=ydsmscdr.id
drop table #xxxx
sql
最新推荐文章于 2025-08-08 12:35:56 发布
select top 1000 id into #xxxx from ydsmscdr where getdate()-startdatetime
delete from ydsmscdr where exists(select * from #xxxx where #xxxx.id=ydsmscdr.id
drop table #xxxx