# 字段默认值为 NULL的情形 start
# 判断member表里user_name为空情况下的用户数
SELECT count(*) FROM member WHERE user_name IS NULL;
# 判断member表里user_name不为空情况下的用户数
SELECT count(*) FROM member WHERE user_name IS NOT NULL;
# 字段默认值为 NULL的情形 end
# 字段默认值为空字符串的情形 start
# 判断member表里user_name为空情况下的用户数
SELECT count(*) FROM member WHERE user_name = '';
# 判断member表里user_name不为空情况下的用户数
SELECT count(*) FROM member WHERE user_name <> '';
# 字段默认值为空字符串的情形 end
or
Select based on your column type and default value.
There are spaces in the quotation marks, and the answer has received rave reviews!