Options for eliminating NULLable columns from a DB model (in order to avoid SQL's three-valued logic)?

后端 未结 7 1572
温柔的废话
温柔的废话 2021-02-08 20:19

Some while ago, I\'ve been reading through the book SQL and Relational Theory by C. J. Date. The author is well-known for criticising SQL\'s three-valued logic (3VL).

7条回答
  •  不要未来只要你来
    2021-02-08 21:10

    Option 3: Onus on the record writer:

    CREATE TABLE Person
    (
      PersonId int PRIMARY KEY IDENTITY(1,1),
      Name nvarchar(100) NOT NULL,
      DateOfBirth datetime NOT NULL
    )
    

    Why contort a model to allow null representation when your goal is to eliminate them?

提交回复
热议问题