|
|
|
|
|
by ars
5813 days ago
|
|
I still don't see how it's possible to insert wrong data, or corrupt it?? There IS no data. How do you corrupt something that doesn't exist? And NULL doesn't help either. NULL is valid data, NULL is not a replacement for programming errors (which is what this is). This argument is pointless. People love to bash on MySQL, they look for the silliest things. The more popular something is the more people bash on it. I understand that, but at least bash on real problems? Like the transaction DDL - that's a real problem. This? This is nonsense. (It's actually a very useful - and optional - feature BTW.) |
|
NULL is not "default value" or "I don't care", NULL signifies "this might have a value, I just don't know what it is".
There is a very significant difference between a payroll record which states your pay is "0" vs. NULL. If the database is putting in default values, you have no way of knowing whether the employee really did have a salary, but it was incorrectly inserted as NULL, or whether the employee is unpaid.