money

Rietta's posts on storing currency correctly in PostgreSQL and MySQL, including which data types to use.

06/04/2019

Best Data Type to store Money in MySQL?

MySQL has no MONEY type. Use DECIMAL(13,2) for most currency, or DECIMAL(13,4) when GAAP compliance needs four places, and see the max value each can hold.

Read More: Best Data Type to store Money in MySQL?

01/28/2019

Storing currency in PostgreSQL

There are different ways we can store currency in PostgreSQL, this blog post will cover the money and numeric type.

Read More: Storing currency in PostgreSQL