Re: What am I doing wrong here? - Mailing list pgsql-general

From stan
Subject Re: What am I doing wrong here?
Date
Msg-id 20191226150002.GB21962@panix.com
Whole thread Raw
In response to Re: What am I doing wrong here?  (Jayadevan M <maymala.jayadevan@gmail.com>)
List pgsql-general
On Thu, Dec 26, 2019 at 07:34:28PM +0530, Jayadevan M wrote:
> Hi,
> 
> 
> On Thu, Dec 26, 2019 at 7:06 PM stan <stanb@panix.com> wrote:
> 
> >
> >
> > _bom_name_key  = ( SELECT
> >                         project_bom_key
> >                    FROM inserted )
> > ;
> >
> 
> Try rewriting
> _bom_name_key  = ( SELECT
>                         project_bom_key
>                    FROM inserted )
> 
> as        SELECT project_bom_key into _bom_name_key
>                    FROM inserted ;

Thanks for the fast response, That did fix my issue,
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



pgsql-general by date:

Previous
From: stan
Date:
Subject: Re: What am I doing wrong here?
Next
From: stan
Date:
Subject: Re: What am I doing wrong here?