Skip to main content
Minor corrections to typos and grammar.
Source Link
Monomeeth
  • 3.8k
  • 2
  • 17
  • 35

Boolean has only two states; on, off one, Zero/off or one/zero. On the other hand if itsit's in a database it can be null, not set. soSo use zero, one or null for male, female, other. Three states in one Boolean field.

Boolean has only two states; on, off one, Zero. On the other hand if its in a database it can be null, not set. so use zero one or null for male, female, other. Three states in one Boolean field.

Boolean has only two states; on/off or one/zero. On the other hand if it's in a database it can be null, not set. So use zero, one or null for male, female, other. Three states in one Boolean field.

Source Link

Boolean has only two states; on, off one, Zero. On the other hand if its in a database it can be null, not set. so use zero one or null for male, female, other. Three states in one Boolean field.