0

How the database solved the problem of NULL values in mysql db? E.g In C, null is implemented as #define NULL '\0'

1 Answers1

1

In general, databases implement NULL values by having a separate flag column for each nullable column.

The flag is "hidden" in the sense that it is not accessed directly. Instead, the engine understands how and when to reference the flag.

NULL is -- in general -- not implemented as a "special" value.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786