1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| SQL> create table dvp_test ( a number (25,8)) ;
Table créée.
SQL> insert into dvp_test values (4) ;
1 ligne créée.
SQL> insert into dvp_test values (4.1);
1 ligne créée.
SQL> insert into dvp_test values (123456);
1 ligne créée.
SQL> insert into dvp_test values (123456789456.123456);
1 ligne créée.
SQL>
SQL> select avg (vsize (a)) from dvp_test ;
AVG(VSIZE(A))
-------------
4,75
SQL>
SQL> analyze table dvp_test compute statistics ;
Table analysée.
SQL>
SQL> select table_name , column_name , AVG_COL_LEN from user_tab_columns
2 where table_name ='DVP_TEST' ;
TABLE_NAME COLUMN_NAME AVG_COL_LEN
------------------------------ ------------------------------ -----------
DVP_TEST A 5
SQL>
SQL> drop table dvp_test ;
Table supprimée.
SQL> |
Partager