Re: Using Cursors in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 6 Aug 2003, Andreas Schmitz wrote:

> 
> Hello *,
> 
> I am just wondering if it is possible to use cursors within PHP. I need to 
> page query result from a big table and I am looking for a solution to avoid 
> scanning the complete table using limit and offset.

Yes, you can use cursors, no you can't expect them to survive from one 
page to the next.

Luckily, Postgresql is smart enough to use indexes when you use offset 
limit, but, of course, it must internally create the result set up to and 
including the last row returned by the limit / offset.



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux