Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 MySql 中,我有一个名为 price 的列。我想通过将每个价格四舍五入到小数点后 3 位来更新价格数字。执行此操作的正确 mysql 函数是什么?
你可以这样: -
SELECT FORMAT(12324.2573, 3);
或者
SELECT FORMAT(price, 3);
select round(price,3)
尝试使用 Format()
Select Format (price ,3) from TableName ;