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
相關文章
相關標籤/搜索