📜  mysql 检查是否为空或空字符串 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.240000             🧑  作者: Mango

代码示例3
SELECT 
    id, 
    user_id, 
    charge,
    IF(status IS NULL or status = '', 'PENDING', status) as status 
FROM `user_payments`