Skip site navigation (1) Skip section navigation (2)

Re: Fun with Cursors- how to rewind a cursor

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Postgres User" <postgres(dot)developer(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Fun with Cursors- how to rewind a cursor
Date: 2007-03-02 05:33:44
Message-ID: 1646.1172813624@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
"Postgres User" <postgres(dot)developer(at)gmail(dot)com> writes:
> So I added the following code:

> <before opening cursor>     ref_entry = 'c_entry';
> <after looping thru cursor>  MOVE Backward All In c_entry;

You have to use EXECUTE for the latter.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-03-02 06:02:41
Subject: Re: broken doc
Previous:From: Tatsuo IshiiDate: 2007-03-02 05:32:42
Subject: broken doc

pgsql-general by date

Next:From: Postgres UserDate: 2007-03-02 06:04:05
Subject: Re: Fun with Cursors- how to rewind a cursor
Previous:From: Eddy D. SanchezDate: 2007-03-02 05:12:06
Subject: Re: Add items to a record variable

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group