-
We currently have populated columns on a table of 50 million rows.
The Data Protection Act means that we can, currently, no longer use specific columns, although this may change.
I intend to maintain the columns, but with null values.
Question:- How much space does a null value use ??
I seem to think that it uses 1 byte, but am unsure.
Please help......
-
Each NULL value in a table consumes either 1 byte or 0 bytes. If there is a non NULL value stored in a column which is placed *after* your null value in the same record, your NULL will require 1 byte. If your NULL is in the last column or if all the columns after that column also contain NULLs, then they will require no space at all.
So if your null columns are placed at the end of the record you'll save some space.