1

Which data type is recommended to use for a field that only stores a boolean value (for example status of a user)?

In my case is as following:

...
disabled tinyint(1) DEFAULT '0' NOT NULL
...

Is there a performance difference between tinyint(1) and int(11) ?

Andrei Todorut
  • 4,260
  • 2
  • 17
  • 28

1 Answers1

2

I would go about using bit since it stores a 0 or 1 aka false or true

t..
  • 1,101
  • 1
  • 9
  • 22