I was designing a database for a site where I need to use a boolean datetype to store only 2 states, true or false. I am using MySQL.
While designing the database using
The numeric type overview for MySQL states:
BOOL, BOOLEAN:
These types are synonyms for TINYINT(1). A value of zero is considered false. Nonzero values are considered true.
See here:
https://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html