mysql - Entering A price -


What would be the best way to set up my SQL field for values ​​such as $ 34,000 / P>

My SQL is: PRICE DECIMAL (4,2) and it seems that I can only produce 34.00. How can I show it, not one (maybe my CMS may be due to stripping data)

And think if you really want to be so restrictive. After two decades of the point it makes sense, but you want to make a mistake on the safe side with the total number, otherwise you can say $ 1,000,000 in your database.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -