Jump to content

[SOLVED] mysql giving funny results


ratcateme

Recommended Posts

i have a table with data from my apache access log in it

i am trying to use a where clause to select based on how big the size is i have this query

SELECT * FROM `access` WHERE `size` > '500' ORDER BY `ID` ASC LIMIT 0 , 100;

it gives 5 results all above 500 there should be 11 results

i then ran this query:

SELECT * FROM `access` WHERE `size` > '1000' ORDER BY `ID` ASC LIMIT 0 , 100;

and got all results i should have only got 7 results i am totally stumped

both query's are behaving differently when they are almost the same

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/89153-solved-mysql-giving-funny-results/
Share on other sites

it doesn't match my expectations but i don't no why because if i look at all the results with no where clause there are many results that should be included in th first query and a hole lot that are smaller than 1000 in the second query

i am wondering if > is supported in a where clause dose anyone no anything about that

 

Scott.

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.