Jump to content


Photo

[MySQL] Create a table with a BOOL column


  • Please log in to reply
No replies to this topic

#1 Vinze

Vinze
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 20 March 2006 - 08:02 AM

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
WTH? I became a guru by asking questions!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users