Jump to content

[MySQL] Create a table with a BOOL column


Vinze

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

Archived

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

×
×
  • Create New...

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.