Oracle字段占用空间测试
- - 数据库 - ITeye博客插入110W条数据,只插入grade字段. 用truncate table amwu_graderecord 重新插入数据. insert into amwu_graderecord(grade,sno,sname,dormitory) select rownum,
'小李子小李子',
'小李子小李子',
'小李子小李子'
from dual connect by level<=1100000;.
create table amwu_graderecord ( sno varchar2(255), sname varchar2(255), dormitory varchar2(255), grade int )
insert into amwu_graderecord(grade) select rownum from dual connect by level<=1100000;
select segment_name, sum(bytes) / 1024 / 1024 Mbytese from user_segments where segment_name = upper('amwu_graderecord') group by segment_name;
insert into amwu_graderecord(grade,sno,sname,dormitory) select rownum, '小李子小李子', '小李子小李子', '小李子小李子' from dual connect by level<=1100000;
insert into amwu_graderecord(grade,sno,sname,dormitory) select rownum, '小李子小李子小李子小李子', '小李子小李子小李子小李子', '小李子小李子小李子小李子' from dual connect by level<=1100000;