0/1 can be flexible and can add options such as "2, 3, 4" in the future.
Does TINYINT
in MySQL take up more space than boolean?
Personally, I use 0 and 1 for everything.
You can answer this question in the context of regular programming (or MySQL, whichever you like).
Any good database system worth its salt will convert boolean to and from something appropriate for the database, and using an actual boolean type makes programming against it much nicer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With