Connecting Tech Pros Worldwide Help | Site Map

how to do a boolean value in MySQL

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 10:48 AM
WindAndWaves
Guest
 
Posts: n/a
Default how to do a boolean value in MySQL

Hi Gurus

What is the best way to store a boolean value in a MySql table (e.g. true or false) AND ( ;-) am I asking this in the right
newsgroup (I could not find one for MySQL)

Thank you

- Nicolaas



  #2  
Old July 17th, 2005, 10:48 AM
Kevin
Guest
 
Posts: n/a
Default Re: how to do a boolean value in MySQL

From the MySQL manual:

BOOL
BOOLEAN
These are synonyms for TINYINT(1). The BOOLEAN synonym was added in MySQL
4.1.0. A value of zero is considered false. Non-zero values are considered
true. In the future, full boolean type handling will be introduced in
accordance with standard SQL.

"WindAndWaves" <access@ngaru.com> wrote in message
news:2RjHd.9229$mo2.698889@news.xtra.co.nz...[color=blue]
> Hi Gurus
>
> What is the best way to store a boolean value in a MySql table (e.g. true
> or false) AND ( ;-) am I asking this in the right
> newsgroup (I could not find one for MySQL)
>
> Thank you
>
> - Nicolaas
>
>[/color]


  #3  
Old July 17th, 2005, 10:48 AM
News Me
Guest
 
Posts: n/a
Default Re: how to do a boolean value in MySQL

WindAndWaves wrote:[color=blue]
> Hi Gurus
>
> What is the best way to store a boolean value in a MySql table (e.g. true or false) AND ( ;-) am I asking this in the right
> newsgroup (I could not find one for MySQL)
>
> Thank you
>
> - Nicolaas
>
>[/color]

The answer is here: http://dev.mysql.com/doc/

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.