Possible duplicate:
What type of MySQL data to use to store boolean values?
I am a .NET programmer and have been using the MySQL database for the first time in my life.
I wanted to keep a boolean, MySQL has a BIT , but the .NET conversion of this data type is UINT64 .
There is another TINYINT(1) data type whose equivalent is System.Boolean , which will serve my purpose.
But why use TINYINT(1) (which can store a value like 123, 22) instead of BIT , and it will take up more space than BIT also (I think) ? It may be legal to use, but I do not think so.
Can anyone help and clarify my doubts?
Deviprasad das
source share