#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';

---声明 图片摘抄自其他人