RE: returning partial result set

2002-01-11 Thread James Montebello
the > initial query. I tried Statement.setFetchSize() but that doesn't appear to > help. Any suggestions in this area? > > Thanks, > Bret > > -Original Message- > From: James Montebello [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 11, 2002 5:57 PM > To: Bret Ewin

RE: returning partial result set

2002-01-11 Thread Bret Ewin
ppear to help. Any suggestions in this area? Thanks, Bret -Original Message- From: James Montebello [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 5:57 PM To: Bret Ewin Cc: [EMAIL PROTECTED] Subject: Re: returning partial result set If all you want is the first page, then simpl

RE: returning partial result set

2002-01-11 Thread Gary . Every
In your select statement, use the LIMIT option SELECT * FROM table limit 10; will return the first ten rows, or SELECT * FROM table limit 100,10 will return rows 101-110 -Original Message- From: Bret Ewin [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 4:47 PM To: [EMAIL PRO

Re: returning partial result set

2002-01-11 Thread James Montebello
If all you want is the first page, then simply use SELECT ... LIMIT n, which will only return the first n rows of the set. To "page through" data, use LIMIT offset, n, which will return n rows starting at offset rows into the dataset. Note that doing this on a changing table will give results t