10

I was wondering how much memory does a null value occupy in a database can anyone answer clearly?

OMG Ponies
  • 325,700
  • 82
  • 523
  • 502
satheesh.droid
  • 29,947
  • 10
  • 34
  • 34

1 Answers1

5

How much space it takes up depends on what the column is defined to be and on the storage engine being used. Some data types take a fixed amount of space regardless of the data stored. There is a small space penalty for declaring a column to accept NULL. Details can be found in this general discussion in the manual and more in the docs about each storage engine.

Ted Hopp
  • 232,168
  • 48
  • 399
  • 521