Home » SQL & PL/SQL » SQL & PL/SQL » Size of one row in table
Size of one row in table [message #21393] Thu, 01 August 2002 01:41 Go to next message
rajesh
Messages: 173
Registered: November 1998
Senior Member
My emp table has the follwing column details
empno number(4)
ename varchar2(10)
job varchar2(9)
mgr number(4)
hiredate date
sal number(7,2)
comm number(7,2)
deptno number(2)
What will be the size of one row of data? How do i do the calculation?
Re: Size of one row in table [message #21406 is a reply to message #21393] Thu, 01 August 2002 09:28 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
It is good to have a reasonable idea of how much space will be used by your tables, and indexes, but trying to work it out exactly is rarely worth the effort (especially with Compression available in 9i). By far the easiest way in your case would be to insert a few rows into emp and then analyze the table.
analyze table EMP compute statistics;
select table_name, num_rows, avg_row_len from user_tables where table_name = 'EMP';
Re: Size of one row in table [message #21455 is a reply to message #21406] Mon, 05 August 2002 05:36 Go to previous message
Ian McLaughlin
Messages: 1
Registered: August 2002
Junior Member
Yes, but what if you just want a rough idea
how much space a row will take up. Is there
any way of quickly finding this out without
doing an analyze?
Previous Topic: calendar simulation
Next Topic: How to get X to Y rows without using "distinct" or "group by"
Goto Forum:
  


Current Time: Tue Apr 23 20:19:50 CDT 2024