Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No (Bit) in Mysql?

Status
Not open for further replies.

elemental

Programmer
Mar 17, 2001
33
0
0
CA
Hey there! I'm using Coldfusion and Ben Forta's excellent book the Web Application Construction Kit. In it, he has exercises that use Access 2000. So I try to recreate the table structures and data using MySQL 3.23. But there are some fields that have a yes/no value (ex. IsEgoManic Bit(Yes/No). any thoughts?
Thanks Gang!
Erik
 
Mysql does not have a boolean datatype.

You can either use a tinyint using 0 for false and everything else true or use a char(3) using 'Yes'/'No' or ...

Just pick a suitable convetion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top