You can show the null values which represent the concept of missing or inapplicable information, with other values for better data representation.
Suppose we have a table as below:
Name | Country |
John | India |
Jane | Australia |
Tim | [NULL] |
So if you query from the database the null result will show the blank result.
SELECT name, IF(country IS NULL,"No Country",country) country FROM users;
Name | Country |
John | India |
Jane | Australia |
Tim | No Country |
MySQL also handles the null values directly using IFNULL function.
SELECT name, IFNULL(country,"No Country") country FROM users;
In a world where digital presence is paramount, the question isn't whether you should do…
Over the years, people have experimented with various methods to maintain healthy and beautiful hair.…
Your brand more than developing an attractive and creative logo and infectious motto. It's the…
Introduction Are you someone who has suffered from a personal injury and want to file…
Operating from home has emerged as one of the most popular ways of doing jobs…
If the consequences of our society’s ever-growing debt are what worries you, then it is…