I don't know for sure.. but If you did not specify how many decimal places to have, or
you specified too many/too less, then you
will need to trail 0's on your price. IE: 123.54 may be stored as 123.5400 in the
database.
If you don't want this 'feature' redefine your column as type 'double (5,2)'
to give prices in 00000.00 form.
good luck.
---------------------
Johnny Withers
[EMAIL PROTECTED]
p. 601.853.0211
c. 601.954.9133
-----Original Message-----
From: Alec Solway [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 03, 2001 6:51 PM
To: [EMAIL PROTECTED]
Subject: Limiting to specific field value of type float
Hi,
I'm having some trouble with the following:
I have a sample table that has one record where price == 123.54, however
select * from gpl where price=123.54
returns an empty set. If I set price to an integer value that's also in the
table, it works. e.g.
select * from gpl where price=500
returns the proper results. price is a column of type float.
TIA.
Alec Solway
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php