Solved

Boolean datatype equivalent in MySQL

Posted on 2014-12-30
3
475 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

809 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