MySQL, better to insert NULL or empty string?
By using NULL you can distinguish between “put no data” and “put empty data”. Some more differences: A LENGTH of NULL is NULL, a LENGTH of an empty string is 0. NULLs are sorted before the empty strings. COUNT(message) will count empty strings but not NULLs You can search for an empty string using a … Read more