Jump to content

How to store numeric values with decimals?


suttercain

Recommended Posts

Hi everyone,

 

I have a column which stores a total price (i.e. 15.81). Using the following query, what should the column type be? Decimal, Float, Double? Right now I have it set to varchar and the following query won't work with it this way.

 

SELECT * FROM accounts WHERE totalPrice <= '15.81'

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.