Average Row Length

Posted on 2005-04-05
Last Modified: 2008-03-06
Hi Experts ,
 Could any one tell me whats is the Average Row length of my table how can we caluculate it . I have the following table.
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
A            NOT NULL NUMBER
B            NOT NULL NUMBER
C            NOT NULL NUMBER
D            NOT NULL NUMBER
E            VARCHAR2(20)
F            NOT NULL VARCHAR2(20)
G            NOT NULL VARCHAR2(15)
H            NOT NULL VARCHAR2(20)
I            NUMBER
J            CHAR(1)
K            CHAR(1)
L            DATE

Question by:ratnaprasad123
    LVL 25

    Accepted Solution

    You can't tell just from this.  The answer is based on the data in the table.  So, if column F is always length 1, the average row length will be different than if it is always 20.  Luckily, Oracle will tell us the answer.

    First do:

    analyze table mytable compute statistics;


    select avg_row_len from user_tables where table_name = 'MYTABLE';

    Author Comment

    Thank you expert .


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
    Creating and Managing Databases with phpMyAdmin in cPanel.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now