Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: NULLS
It depends. If the column is in the middle of a row, then it will take up 1 byte. However any null fields at the end of a row take up no space, since part of the ORACLE row configuration is a count of the number of columns that make up the row. So if a row had 7 columns but the last 2 were null, ORACLE would store this as just 5 columns.
How much space does a null take?
For example:
I have a field, datatype varchar2(10), if this field is null for one
row, how many bytes does it use?
-- JP Soria Jr. Oracle7 DBA Email: jpsoria_at_saxe.com "Failing to plan = planning to fail"Received on Fri Mar 07 1997 - 00:00:00 CST