Are there reasons for not storing boolean values in SQL as bit data types?

后端 未结 11 1581
北恋
北恋 2020-12-29 02:44

Are there reasons for not storing boolean values in SQL as bit data types without NULL? I see them often stored as integers without constraints to limit values to 0 and 1,

11条回答
  •  别那么骄傲
    2020-12-29 02:54

    I think third normalization form would state that you should have a table that stores the values True and False, and reference that. Make sure you do that with your dates as well!

    But who completely adheres to 3NF anyway? ;)

提交回复
热议问题