Currency modeling in database

前端 未结 4 2147
情书的邮戳
情书的邮戳 2020-12-19 08:35

A very naive question. I need to store currency in the database. Both the value and the code. To solve this, do people generally make 2 columns, one storing the value and ot

4条回答
  •  再見小時候
    2020-12-19 09:17

    The relational databases I know (Oracle, Postgres, MySQL) do not have built-in currency support, and I don't expect any others do. You will have to do it yourself with 2 columns.

提交回复
热议问题