📅  最后修改于: 2022-03-11 15:04:50.807000             🧑  作者: Mango
SELECT IF(guides.colName IS NULL, 'Yes','No') FROM tableName;
-- Or
SELECT
CASE
WHEN colName IS NULL THEN 'Yes'
ELSE 'No'
END
FROM tableName;