MySQL中的货币等价物
如何将下面的SQL语句转换为MySQL。MySQL中是否有等价物MySQL中的货币等价物,mysql,sql-server,currency,Mysql,Sql Server,Currency,如何将下面的SQL语句转换为MySQL。MySQL中是否有等价物 DECLARE v_min_msrp int; DECLARE v_avg_msrp int; DECLARE v_max_msrp int; SELECT Min(Convert(money, Ifnull(msrp, 0))), Avg(Convert(money, Ifnull(msrp, 0))), Max(Convert(money, Ifnull(msrp, 0))) IN
DECLARE v_min_msrp int;
DECLARE v_avg_msrp int;
DECLARE v_max_msrp int;
SELECT
Min(Convert(money, Ifnull(msrp, 0))),
Avg(Convert(money, Ifnull(msrp, 0))),
Max(Convert(money, Ifnull(msrp, 0))) INTO v_min_msrp, v_avg_msrp, v_max_msrp
FROM imported_data_feed
请不要使用不适用于您的问题的标记。“Money”的可能重复项大致相当于十进制(19,4)。。。这与数字(19,4)相同。