daydreamer daydreamer - 8 months ago 64
SQL Question

PostgreSQL: Which Datatype should be used for Currency?

Seems like

Money
type is discouraged as described here

My application needs to store currency, which datatype shall I be using? Numeric, Money or FLOAT?

Answer Source

Numeric. Never use float for currency, and the money type is just left in for historical reasons as far as I can tell.