Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.