MySQL Boolean?

Soldato
Joined
6 Jun 2011
Posts
2,741
Hey guys,

So I am trying to create a new database and am going to have a website that allows the user to select tick boxes depending on what they require.

The database will then be searched to see which items have these features. So what is the best way to have either true or false in SQL?

Thanks :)
 
Hey guys,

So I am trying to create a new database and am going to have a website that allows the user to select tick boxes depending on what they require.

The database will then be searched to see which items have these features. So what is the best way to have either true or false in SQL?

Thanks :)

What about a 'TINYINT' set to 0 or 1?
 
Back
Top Bottom