postgresql - Using price contraints or a function in Postgres for "money" type? -


i'm trying make sure sales prices in postgres database end in either .99 or .00.

if price 34.00, i'd database leave alone. if price 34.34 i'd changed 34.99.

can done entirely inside of postgres, function, or system of contraints? want make sure it's possible before start hammering away @ it.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo