How are NULLs stored in a database?

后端 未结 5 828
野性不改
野性不改 2021-01-04 11:25

I\'m curious to know how NULLs are stored into a database ?

It surely depends on the database server but I would like to have an general idea about it.


5条回答
  •  既然无缘
    2021-01-04 11:49

    The problem with special values to indicate NULL is that sooner or later that special value will be inserted. For example, it will be inserted into a table specifying the special NULL indicators for different database servers

    | DBServer     | SpecialValue |
    +--------------+--------------+
    | 'Oracle'     | 'Glyph'      |
    | 'SQL Server' | 'Redmond'    |
    

    ;-)

提交回复
热议问题