daydreamer daydreamer - 6 months ago 58
SQL Question

PostgreSQL: Which Datatype should be used for Currency?

Seems like

type is discouraged as described here

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


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