MySQL Forums
Forum List  »  Newbie

Re: Having trouble using SELECT on a field containing a decimal number...
Posted by: Christian Hamel
Date: July 21, 2005 01:30PM

See the manual online at : http://dev.mysql.com/doc/mysql/en/no-matching-rows.html


If you are comparing FLOAT or DOUBLE columns with numbers that have decimals, you can't use equality (=) comparisons. This problem is common in most computer languages because not all floating-point values can be stored with exact precision. In some cases, changing the FLOAT to a DOUBLE fixes this. See Section A.5.8, “Problems with Floating-Point Comparisons”.

Options: ReplyQuote


Subject
Written By
Posted
Re: Having trouble using SELECT on a field containing a decimal number...
July 21, 2005 01:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.