• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

Boolean datatype equivalent in MySQL

Is there a datatype in mysql that is equivalent to boolean
Ravi Kalla
Ravi Kalla
2 Solutions
Loganathan NatarajanLAMP DeveloperCommented:
What do you want to store as Boolean? 1 or 0  OR T or F?  because there is no straight way to use boolean data type in Mysql.. instead of you can use CHAR (1) or tinyint(1) way to use.
Dave BaldwinFixer of ProblemsCommented:
'Boolean' in MySQL is a synonym for TINYINT(1).
Ravi KallaTechnology LeadAuthor Commented:
Thanks for the quick answers

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now