Re: Cursor Issue??

Поиск
Список
Период
Сортировка
От DracKewl
Тема Re: Cursor Issue??
Дата
Msg-id 1122492094.788112.300790@g14g2000cwa.googlegroups.com
обсуждение исходный текст
Ответ на Re: Cursor Issue??  (Roman Neuhauser <neuhauser@sigpipe.cz>)
Ответы Re: Cursor Issue??  (Roman Neuhauser <neuhauser@sigpipe.cz>)
Список pgsql-general
I found using the shell works but using the phAdminIII GUI is the one
that gives me problems.  I've even tried running it on EMS PostgreSQL
Manager 3.  Same results.  Is this normal?

Got a couple more questions regarding cursors.
1. When I try to run this statement (Declare curs1 refcursor;)  I get
an error ERROR:  syntax error at or near "refcursor" at character 23
2. Using Fetch count; also barfs on me.
3.  After I use Fetch First how do I take the contents and insert them
into another table?
  This is my guess.
  FETCH FIRST IN cursor1 INTO partstemp(qty, length, width)

BEGIN;
DECLARE cursor1 CURSOR FOR SELECT * FROM PARTS;
FETCH FIRST IN cursor1 INTO partstemp(qty, length, width);    << My
guess but doesnt work.
CLOSE cursor1;
COMMIT;


В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: problem inserting with sequence
Следующее
От: jbduffy@tiscali.co.uk
Дата:
Сообщение: Real vs Float & 32bit vs 64bit CPU Performance Question