标签: mysql
行。我明白了如果有空数据,我可以这样说,
SELECT productName, IFNULL(price1,"" ) as First Price, IFNULL(price2, "") as Second Price from ProductP;
我的问题是,除了添加$符号和十进制数字,显示为唯一价格的价格(仍为空数字是我想保持空白),如何制作?
提前谢谢。
答案 0 :(得分:0)
这就是你需要的:
IFNULL(concat(price1,' $'),"" )