postgresql数据库Coalesce函数和current_schema函数的应用

select Coalesce(Lower(current_schema()),'N/A'),

current_schema()是获取当前模式名,

Coalesce()当第一个参数不为null时返回第一个参数值,当第一个参数为null时返回第二个参数值。

 

posted on 2020-12-29 14:34  德邦总管  阅读(826)  评论(0编辑  收藏  举报

导航