A long time ago I used Oracle (I think it was something like 7 or 8 version)... there was no boolean type at that time, ok.
Then I mainly used SqlServer, MySql and PostgreSql.
They all have some sort of boolean type:
Apparently you need to use an number(1) to store those kind of values... How lame!
And don't get me started on the auto-increment columns ;)
Then I mainly used SqlServer, MySql and PostgreSql.
They all have some sort of boolean type:
- SqlServer use 'bit'
- MySql has 'bit', 'bool' or 'boolean' which are all tinyint(1) under the cover but that's none of our business
- PostgreSql has a 'boolean' type (with valid values true/false, t/f, 0/1)
Apparently you need to use an number(1) to store those kind of values... How lame!
And don't get me started on the auto-increment columns ;)
1 comment:
I always used an integer, whatever the DB was. No problem with that.
Post a Comment