Обсуждение: Cursors in plpgsql

Поиск
Список
Период
Сортировка

Cursors in plpgsql

От
"Preeti Kamble"
Дата:
Hi
Is there a command in plpgsql similar to  %NOTFOUND of oracle?

i want to write a load script which takes each row from the temporary
table, do some processing and insert into actual tables. Any idea how i
can accomplish this???

thank you
regards
Preeti


Re: Cursors in plpgsql

От
Anand Raman
Дата:
there is the FOUND variable which can be negated to have the desired
effect ..

Try out

IF NOT FOUND ....

Hope this helps
Anand
On Mon, Apr 16, 2001 at 07:06:59PM +0530, Preeti Kamble wrote:
>Hi
>Is there a command in plpgsql similar to  %NOTFOUND of oracle?
>
>i want to write a load script which takes each row from the temporary
>table, do some processing and insert into actual tables. Any idea how i
>can accomplish this???
>
>thank you
>regards
>Preeti
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster