How to maintain precision while doing arithmetic in MySQL?

后端 未结 0 402
抹茶落季
抹茶落季 2021-01-31 07:24

Say I have two columns, A and B, which are of type DECIMAL(9,2).

Now, say I run the following query:

SELECT SUM(A) / SUM(B)

M

相关标签:
回答
  • 消灭零回复
提交回复
热议问题