阅读背景:

有没有理由不将SQL中的布尔值存储为位数据类型?

来源:互联网 

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, and as strings with things like T/F, True/False, yes/no, etc., again without constraints. Isn't it better to store them as bits and not have to worry about additional constraints? What am I missing here?Are there reasons for not storing boolean value




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: