假设行有3列
估计表中行的平均长度:
数据不多:
select AVG(NVL(VSIZE(column1),0))+
AVG(NVL(VSIZE(column2),0))+
AVG(NVL(VSIZE(column3),0)) Avg_row_length
from TABLENAME;
表较大:
analyze table TABLENAME compute statistics;
表更大:
analyze table TABLENAME estimate statistics;
然后可从数据字典中选择统计值:
select Avg_Row_Len from USER_TABLES where Table_Name = 'TABLENAME'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-852123/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/545828/viewspace-852123/