Re: exceptions - Mailing list pgsql-general

From Rafael Montoya
Subject Re: exceptions
Date
Msg-id BAY18-F28D400FFAEBB4FFD97F2D7F8780@phx.gbl
Whole thread Raw
In response to Re: Using cursors...  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: exceptions
List pgsql-general
I'm migrating some triggers from oracle to postgresql and i can´t find the
equivalent of the following two sentences:
1)
DECLARE
     TMP_COD_PRO  PRODUCT.COD_PRO%TYPE;

I don't know if its equivalent exists in PostgreSQL

2)
EXCEPTION
        when no_data_found then null;

what i tried :

exception
       if not found then null;

but it seems not to be correct, can anybody give me a hand? thanks
Rafael

_________________________________________________________________
Acepta el reto MSN Premium: Protección para tus hijos en internet.
Descárgalo y pruébalo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil


pgsql-general by date:

Previous
From: Alex Stapleton
Date:
Subject: Re: Cluster/redundancy question
Next
From: Steve Crawford
Date:
Subject: Re: PostgreSQL missing in SuSE 10?