ECPG and FETCH

Поиск
Список
Период
Сортировка
От Tim Kane
Тема ECPG and FETCH
Дата
Msg-id 3872ED14.3AEB1DAA@hotgames.com
обсуждение исходный текст
Список 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.


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 по дате отправления:

Предыдущее
От: "Joe Shevland"
Дата:
Сообщение: Re: [INTERFACES] escaping characters ...
Следующее
От: Tim Kane
Дата:
Сообщение: ECPG and FETCH