coalesce使用

COALESCE(discount_price, price)
--若有折扣价,显示折扣价;
--若无折扣价,显示原价;

posted @ 2024-06-14 16:28  帆帆代码院  阅读(1)  评论(0编辑  收藏  举报