PDA

View Full Version : boolean data type


boywonder
09-06-2002, 02:51 PM
I'm currently using ENUM ('0','1') to store a value that will always be 0 or 1.
Question is there a boolean (bit) data type in mysql, or if not is there a more efficient way to store this? Thanks.

mordred
09-06-2002, 05:12 PM
Not that I know of. Another way would be to use a TINYINT column with length 1 if you want to cut down on storage size, but the ENUM solution should work fine even for long queries.

boywonder
09-08-2002, 01:12 AM
Thanks mordred - :)