ECPG and FETCH - Mailing list pgsql-interfaces

From Tim Kane
Subject ECPG and FETCH
Date
Msg-id 3872F1C3.8007B24B@hotgames.com
Whole thread Raw
Responses Re: [INTERFACES] ECPG and FETCH  (Ivo Simicevic <ivo@ultra.hr>)
Re: [INTERFACES] ECPG and FETCH  (Michael Meskes <meskes@postgreSQL.org>)
List pgsql-interfaces
First of all, ECPG doesn't seem to recognise the FETCH command at all,
returning with Syntax Error (see below).

Secondly, are there any postgres specific Embedded SQL docs around
'anywhere'?
I've already have a few difficulties with subtle differences between
different precompiler syntax, and it's becoming frustrating.

Thanks for any help!

Tim.


eg:

EXEC SQL DECLARE rowcur CURSOR FOR          SELECT prod_id, name, format          FROM products          WHERE name
like'%ABC%';
 

EXEC SQL OPEN rowcur;

for (i=0; i<5; i++)
{  EXEC SQL FETCH rowcur INTO :prod_id, :title, :format;  // Do something.
}






pgsql-interfaces by date:

Previous
From: Tim Kane
Date:
Subject: ECPG and FETCH
Next
From: Ivo Simicevic
Date:
Subject: Re: [INTERFACES] ECPG and FETCH