Connecting Tech Pros Worldwide Help | Site Map

how to do a boolean value in MySQL

  #1  
Old July 17th, 2005, 11:48 AM
WindAndWaves
Guest
 
Posts: n/a
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, 11:48 AM
Kevin
Guest
 
Posts: n/a

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, 11:48 AM
News Me
Guest
 
Posts: n/a

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/

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Basic Tutorial Atli insights 5 August 20th, 2009 10:53 AM
Getting a function result while in heredoc bill answers 6 December 22nd, 2006 03:35 AM
How to detect if a MySQL db table exists in MySQL 4.1+ phillip.s.powell@gmail.com answers 5 March 16th, 2006 10:35 PM
Cannot use mail() in IE, only works in a debugger--help baustin75@gmail.com answers 8 October 5th, 2005 06:15 PM