sql server 2008 r2 删除数据,所占硬盘空间怎么释放出来

2025-05-22 05:10:06
推荐回答(2个)
回答1:

右键你要选择的数据库,收缩数据库,然后执行就可以了

回答2:

with test as
(
select id=row_number()over(partition by CNBMC order by CNBMC),* from tablename where CNBMC in('BLSH_1000','blsh_1001')
)
delete test where id=2