Solved

Boolean datatype equivalent in MySQL

Posted on 2014-12-30
3
491 Views
Last Modified: 2014-12-30
Is there a datatype in mysql that is equivalent to boolean
0
Comment
Question by:Ravi Kalla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 250 total points
ID: 40525034
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.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 40525036
'Boolean' in MySQL is a synonym for TINYINT(1).
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
0
 
LVL 6

Author Closing Comment

by:Ravi Kalla
ID: 40525039
Thanks for the quick answers
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question