Andrey <[EMAIL PROTECTED]> wrote: > > I have a following question: > > I have a table with thousands of rows which i need to show in a String Grid ( I use > Borland Delphi with MyDac component which implements MySQL interface). > > If i make a query > SELECT * FROM tbl WHERE col1="something", > it can cause retreival of 10,000 records and my program will just eat all the > Windows resources and die :) > > So i need to retreive first 1000 of rows, then on user's request, next 1000, etc. > > If i use SELECT ... LIMIT 1000, it just retreives first 1000 of records, which > doesn't resolve my problem. >
Use SELECT .. LIMIT 1000, 1000 to retrieve the next 1000 rows: http://www.mysql.com/doc/en/SELECT.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]