padmanabha konkodi wrote:
hi all, my query return 100 rows but if i am intrested only from 40-60 rows then how to restrict. for example select * from students (returns 100 rows).but i am intrested only rows from 40 to 60.
SELECT * FROM student ORDER BY something LIMIT 20 OFFSET 40; Be aware that this will have to fetch 60 rows and throw the first 40 away. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly