0

i have retrieve data from database with this query:

SELECT *
FROM news, necat
WHERE news.ns_cat = necat.nc_id 
ORDER BY ns_id DESC
LIMIT 0,4

and when this query run return only 3 row?! can you find any problem?

2
  • 3
    How many common records are there in those tables? Commented Oct 21, 2013 at 10:00
  • create a fiddle at www.sqlfiddle.com and then post your question with link to that fiddle Commented Oct 21, 2013 at 10:05

1 Answer 1

1

LIMIT limits the number of possible results, but if your query only returns 3 results, it cannot extend it :)

Sign up to request clarification or add additional context in comments.

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.