sqlmysqlbooleantinyint

Boolean vs tinyint(1) for boolean values in MySQL


What column type is best to use in a MySQL database for boolean values? I use boolean but my colleague uses tinyint(1).


Solution

  • These data types are synonyms.

    Source: https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html