1

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.

2
  • have you tried to put pos value in quotes? Commented 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. Commented Apr 27, 2016 at 19:43

2 Answers 2

1

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 
Sign up to request clarification or add additional context in comments.

1 Comment

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!
0

SELECT * FROM table_name WHERE pos<=0.7 AND pos LIKE '%0.7';

Is it helping?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.