#sao.finished_at is null
select sao.id,sao.finished_at from miniapp.fc_sale_ad_orders sao
where
case when sao.finished_at='' then(
case when sao.finished_at='' is not null then '1' else '0' end)
else(case when sao.finished_at=''is not null then '0' else '1' end)
end='1';
---声明 图片摘抄自其他人
标签:非空,sao,else,when,查询,finished,条件,end,null From: https://www.cnblogs.com/xuchuanhui/p/17325553.html