Thread: Cursors in plpgsql

Cursors in plpgsql

From
"Preeti Kamble"
Date:
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

From
Anand Raman
Date:
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