Solved

Boolean datatype equivalent in MySQL

Posted on 2014-12-30
3
468 Views
Last Modified: 2014-12-30
Is there a datatype in mysql that is equivalent to boolean
0
Comment
Question by:Ravi Kalla
3 Comments
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 250 total points
Comment Utility
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 82

Accepted Solution

by:
Dave Baldwin earned 250 total points
Comment Utility
'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
Comment Utility
Thanks for the quick answers
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now