Re: exceptions

From: "Rafael Montoya" <rafo-mm(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: exceptions
Date: 2005-10-11 17:24:12
Message-ID: BAY18-F28D400FFAEBB4FFD97F2D7F8780@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2005-10-11 17:34:11 Re: PostgreSQL missing in SuSE 10?
Previous Message Russ Brown 2005-10-11 17:14:37 Re: PostgreSQL's bug tracker