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?
Share
I’d always stick with the smallest data type I can to store this.
Edit: Oracle’s BOOLEAN is PL/SQL only, not table definition. Updated answer to reflect this.