Re: trigger and plpgsq help needed

Поиск
Список
Период
Сортировка
От SUNDAY A. OLUTAYO
Тема Re: trigger and plpgsq help needed
Дата
Msg-id 9a7c9c0e-92c9-42c4-a0ba-6cf2399b3f94@mail
обсуждение исходный текст
Ответ на Re: trigger and plpgsq help needed  ("SUNDAY A. OLUTAYO" <olutayo@sadeeb.com>)
Список pgsql-general
Thanks you all,

"IF last_id IS NULL THEN" eventually work

Thanks,

Sunday Olutayo
Sadeeb Technologies Ltd



From: "SUNDAY A. OLUTAYO" <olutayo@sadeeb.com>
To: "Rob Richardson" <RDRichardson@rad-con.com>
Cc: pgsql-general@postgresql.org
Sent: Thursday, September 27, 2012 2:04:46 PM
Subject: Re: [GENERAL] trigger and plpgsq help needed

p { margin: 0; }
RobR,

I have tried it 'IF FOUND' but not getting the desired result

Thanks,

Sunday Olutayo



From: "Rob Richardson" <RDRichardson@rad-con.com>
To: pgsql-general@postgresql.org
Sent: Wednesday, September 26, 2012 7:14:46 PM
Subject: Re: [GENERAL] trigger and plpgsq help needed

Why not use IF FOUND?

 

RobR

 

From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of SUNDAY A. OLUTAYO
Sent: Wednesday, September 26, 2012 12:43 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] trigger and plpgsq help needed

 

Dear all,

I have issue with the red portion function below;

This
IF last_id IS NULL THEN suppose to test if last_id is NULL, that is the select query did not found it
then execute the rest of the red sql but it always fail to insert the NEW.amount into amount, every other things fine.

Kindly help out.



В списке pgsql-general по дате отправления:

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: Re: problem with recreating database with export
Следующее
От: Chris Curvey
Дата:
Сообщение: Re: unc paths, like and backslashes on 8.4