Just like the @Marconi already mentioned as per the documentation, you can see as follows:
- You need only 1 bit;
- An unorthodox way to have a
boolean
, with NULL
/' '
for false
/true
;
- Maintainability of a legacy system where values are no longer required, but it is impossible to perform a
DROP COLUMN
, because it could lead to a number of problems due to its lack;
This is not standard, but the MySQL
permits. No SQL SERVER
for example:
char [ ( n ) ] Non-unicode character string data
fixed length. n defines the length of the string and
should be a value of 1 to 8,000. The storage size is n bytes.
The synonym ISO for char is characters.
In addition to old system, what is the use of having a column with NULL values?
– Laerte
@Laerte I did not understand the question. This question Bigown answers your question? :)
– Marconi
My question is more related to that question right here, I wonder what is the use of having a column that accepts ONLY null and not those that accept null and normal values.
– Laerte
I found, it was not specifically about zero column, but the situation is analogous: A varchar(0) with NULL or does not behave the same column BIT: http://answall.com/questions/108842/70 - And only take advantage of space if you have more than one.
– Bacco