Standard use of 'Z' instead of NULL to represent missing data?

前端 未结 8 561
借酒劲吻你
借酒劲吻你 2020-12-12 20:08

Outside of the argument of whether or not NULLs should ever be used: I am responsible for an existing database that uses NULL to mean "missing or never entered" da

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 20:45

    In reply to contractors comments

    • Empty string <> NULL
    • Empty string requires 2 bytes storage + an offset read
    • NULL uses null bitmap = quicker
    • IDENTITY doesn't always start at 1 (why waste half your range?)

    The whole concept is flawed as per most other answers here

提交回复
热议问题