清除数据库无用的记录

## 查询各个表的记录数数据库

select a.name, b.rows
from sysobjects a
inner join sysindexes b on a.id = b.id
where a.type = 'u'
and b.indid in (0, 1)
order by b.rows descapp

 

## 截断一些无用的表,减少数据库体积大小orm

truncate table AutoRunnerRecords
truncate table informations
truncate table applicationlogs io

相关文章
相关标签/搜索