What is difference between NULL and Empty String in Mysql ?
How much storage space it will take ?
For Example .
In the user table
name : NULL – How much space its take
phone : -How much space its take
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are valid reasons to use NULL, but saving space in row storage isn’t one. If you want a ‘don’t know’ placeholder use a NULL; if you simply want to store an empty string that behaves like an empty string, go ahead and store an empty string. If it’s a VARCHAR column (which it probably will be) then it’s hardly taking much space anyway.