--统计用户占用多大的空间
select sum(bytes)/1024/1024 from user_extents;
select sum(bytes)/1024/1024 from dba_extents;
--一行数据超过4k
select * from (select sum(b.DATA_LENGTH) as sum,b.TABLE_NAME from user_tab_columns b group by b.TABLE_NAME ) where sum>=4000
本文介绍如何使用SQL查询来统计用户在数据库中占用的空间大小,并找出表中哪些字段的数据长度超过了4KB。
174万+

被折叠的 条评论
为什么被折叠?



