I am having an issue with a MySQL SELECT query. Here is the data in the table https://i.sstatic.net/TcVSZ.jpg This query doesn't, even though the data is in there https://i.sstatic.net/Guj0B.jpg Does anyone know why this is happening? The data type is a float, and a similar variable works.
-
have you tried to put pos value in quotes?V. Sambor– V. Sambor2016-04-27 19:34:48 +00:00Commented Apr 27, 2016 at 19:34
-
Please, whenever possible post things like that as plain text formatted as code if necessary in the body of your question. External links like that are unreliable.tadman– tadman2016-04-27 19:43:08 +00:00Commented Apr 27, 2016 at 19:43
Add a comment
|
2 Answers
could be the value stored is not exactly 0.7
try
select * from learned_info where pos > 0.6;
or could be the value are not float
1 Comment
taricketts
This did work for all cases. What was weird though is that I created these as strings, and put them into the database casted as floats. Thanks for the help!