关于一些拐弯抹角的PostgreSQL问题(更新)

把北风公司的订单替换,用提都没提就要求会的coalesce函数

select employeeid, firstname||' '||lastname,
case
when coalesce(shipregion,'') = '' then '姓名为空' else shipregion
end 区域
from orders

posted @ 2020-05-01 19:05  TakeShotsho  阅读(129)  评论(0)    收藏  举报