1亿条数据中保留5条删除其他的有什么快点的方法吗?一个面世题,我他妈的被鄙视了。用delete not in 不行...
1亿条数据中保留5条删除其他的有什么快点的方法吗?一个面世题,我他妈的被鄙视了。用delete   not   in   不行...   
 等高手解答。
------解决方案--------------------select 5条数据 into #临时表 from 1亿条数据的牛X表   
 truncate table 1亿条数据的牛X表 
 --让它牛X,不到10毫秒干掉它。   
 insert 1亿条数据的牛X表 select * from #临时表   
 drop table #临时表