Search code examples
databasedatabase-designrdbmssqldatatypes

What is the best data type to store boolean values in a database


What is the best data type to store boolean values in a database? which is supported by mostly used RDBMS types such as Mysql,oracle,postgres,mssql


Solution

  • you can use TINYINT or bit datatype