Jump to content


This topic is now archived and is closed to further replies.


[MySQL] Create a table with a BOOL column

Recommended Posts

Hey, imagine I want to create a table. and it has one column which is called `foo`, with a boolean value which is TRUE by default. It should not allow NULL values. How would I set about doing this?

The reason I'm asking is that mine gives an error...

MySQL version 5.0.18

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.