Re: I cant find it or I'm just lazy ?
От | Christoph Haller |
---|---|
Тема | Re: I cant find it or I'm just lazy ? |
Дата | |
Msg-id | 3E5B69F2.FE6C907F@rodos.fzk.de обсуждение исходный текст |
Ответ на | I cant find it or I'm just lazy ? (Darko Prenosil <darko.prenosil@finteh.hr>) |
Ответы |
Re: I cant find it or I'm just lazy ?
|
Список | pgsql-hackers |
> > On Tuesday 25 February 2003 09:28, Christoph Haller wrote: > > > On Mon, Feb 24, 2003 at 07:53:05PM +0000, Darko Prenosil wrote: > > > > I need two answers I did not find in documentation : > > > > How can I get exact number of rows in DECLARED CURSOR ? > > > > OK, I can FETCH until NULL, but this does not fits my needs ! > > > > You may want to use FETCH ALL, otherwise what or your needs in detail? > > > If I use FETCH ALL all, all the data will be sent to client, then why to use > CURSOR at all ? I need to reduce network trafic on slow connections ! > I cannot see how you are going to reduce network traffic by knowing in advance how many rows will be returned. Anyway, you may MOVE until 0 instead of FETCH, or use the COUNT() function on the query to learn about the number of rows to be returned. Regards, Christoph
В списке pgsql-hackers по дате отправления: