From: | Tim Kane <timk(at)hotgames(dot)com> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | ECPG and FETCH |
Date: | 2000-01-05 07:24:51 |
Message-ID: | 3872F1C3.8007B24B@hotgames.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers 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.
}
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2000-01-05 07:41:52 | RE: [HACKERS] What does explain show ? |
Previous Message | Tom Lane | 2000-01-05 06:56:14 | Y2K glitch in pgsql mail list archives |
From | Date | Subject | |
---|---|---|---|
Next Message | Ivo Simicevic | 2000-01-05 15:04:20 | Re: [INTERFACES] ECPG and FETCH |
Previous Message | Tim Kane | 2000-01-05 07:12:46 | ECPG and FETCH |