Re: Cursor

From: Richard Huxton <dev(at)archonet(dot)com>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cursor
Date: 2008-07-29 21:15:09
Message-ID: 488F885D.2020706@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley wrote:
> I have the following cursor that gives me an error near open.
>
> Can someone please tell me what I am doing wrong??
> DECLARE
> procgraphic cursor for select process_id from p_id.p_id,
> processes_count where p_id.p_id.p_id_id = processes_count.p_id_id;

> begin
>
> Open procgraphic ;

There is no OPEN, you just FETCH

> Fetch first from procgraphic into process_id;

--
Richard Huxton
Archonet Ltd

In response to

  • Cursor at 2008-07-29 20:49:52 from Bob Pawley

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-07-29 21:35:52 Re: Cursor
Previous Message Bob Pawley 2008-07-29 20:49:52 Cursor