What is the best datatype for currencies in MySQL?

前端 未结 1 1879
再見小時候
再見小時候 2021-01-04 09:50

I want to store values in a bunch of currencies and I\'m not too keen on the imprecise nature of floats. Being able to do math on them directly in queries is also a requirem

相关标签:
1条回答
  • 2021-01-04 10:13

    Decimal is the best way to go.

    You can still do math within the queries.

    0 讨论(0)
提交回复
热议问题