Re: exceptions

Поиск
Список
Период
Сортировка
От Rafael Montoya
Тема Re: exceptions
Дата
Msg-id BAY18-F28D400FFAEBB4FFD97F2D7F8780@phx.gbl
обсуждение исходный текст
Ответ на Re: Using cursors...  (Jaime Casanova <systemguards@gmail.com>)
Ответы Re: exceptions  (Michael Fuhr <mike@fuhr.org>)
Список 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 по дате отправления:

Предыдущее
От: Alex Stapleton
Дата:
Сообщение: Re: Cluster/redundancy question
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: PostgreSQL missing in SuSE 10?