What database field type do you use for yes/no entries in SQL Buddy?
I am new to all this so looking for some help. So开发者_如何学运维rry if the question is really novice. I am learning all of the char, varchar, etc.
Try BOOL
. (It's an alias for TINYINT(1)
.)
If the MySQL server is at least version 5.0.3, you can also use BIT
(or BIT(1)
, same thing).
You'd probably benefit from checking out some of the docs.
精彩评论