Re: Need help on triggers - postgres 9.1.2

From: Khangelani Gama <kgama(at)argility(dot)com>
To: rod(at)iol(dot)ie, Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-general(at)postgresql(dot)org
Subject: Re: Need help on triggers - postgres 9.1.2
Date: 2014-05-22 12:55:28
Message-ID: 3c89b355d6b3cc13d3e86020cfc16684@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks , I will try that

-----Original Message-----
From: Raymond O'Donnell [mailto:rod(at)iol(dot)ie]
Sent: Thursday, May 22, 2014 2:54 PM
To: Khangelani Gama; Andrew Sullivan; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Need help on triggers - postgres 9.1.2

On 22/05/2014 13:48, Khangelani Gama wrote:
> Hi
>
> My problem is on two lines, INSERT statements, I get an error saying
> c_cde does not exist
>
> INSERT INTO center_changed SELECT c_cde, now(); - My problem is here: I
> get an error saying c_cde does not exist, I cant how I can give

You need to specify where c_cde is coming from - so OLD.c_cde or NEW.c_cde
(or else SELECT .... FROM... if it's coming from somewhere else).

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

CONFIDENTIALITY NOTICE
The contents of and attachments to this e-mail are intended for the addressee only, and may contain the confidential
information of Argility (Proprietary) Limited and/or its subsidiaries. Any review, use or dissemination thereof by anyone
other than the intended addressee is prohibited.If you are not the intended addressee please notify the writer immediately
and destroy the e-mail. Argility (Proprietary) Limited and its subsidiaries distance themselves from and accept no liability
for unauthorised use of their e-mail facilities or e-mails sent other than strictly for business purposes.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igor Neyman 2014-05-22 12:55:29 Re: Need help on triggers - postgres 9.1.2
Previous Message Raymond O'Donnell 2014-05-22 12:53:46 Re: Need help on triggers - postgres 9.1.2