MySQL 查询结果保留两位小数经常使用的几个函数的区别汇总

MySQL查询结果保留两位小数经常使用的几个函数的区别,使用场景。 一、随机函数format(x,d) 二、格式化小数函数format(x,d) 例如:html [html]  view plain  copy select format(23456.789,2);   [html]  view plain  copy select formate(salary,2);   输出:ide [htm
相关文章
相关标签/搜索