MySQL Forums
Forum List  »  Newbie

Re: Radio button from form, binary attribute
Posted by: Roland Bouman
Date: July 22, 2005 01:11AM

Well, not literally.

I think you can actually use BOOL and BOOLEAN as a column datatype in a create table and alter table statement, but these are just synonyms for tinyint(1).

In a context where an actual boolean is expected, numeric <> 0 and not null evaluates to true.

also, u can use an enum datatype to emulate a string boolean

Options: ReplyQuote


Subject
Written By
Posted
Re: Radio button from form, binary attribute
July 22, 2005 01:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.