Tinyint vs Bit?

前端 未结 16 2067
暖寄归人
暖寄归人 2020-12-13 05:13

I don\'t want to touch-off a religious war here, but there seem to be two schools of thoughts in how to represent boolean values in a database. Some say bit is

16条回答
  •  北海茫月
    2020-12-13 06:04

    I use bit because it saves me having to use a check constraint, and because my ORM will automatically convert bit into a nullable boolean (C#), which I very much appreciate once coding.

提交回复
热议问题