Re: query ... returned 4 columns - Mailing list pgsql-general

From Richard Huxton
Subject Re: query ... returned 4 columns
Date
Msg-id 45F034C4.70304@archonet.com
Whole thread Raw
In response to query ... returned 4 columns  (Sorin Schwimmer <sxn02@yahoo.com>)
List pgsql-general
Sorin Schwimmer wrote:
> Hi All,
>
> I'm trying to write a stored PLPG/SQL procedure:

>     o:= * FROM expected_stuff WHERE packslip=$1; --
> LIMIT 1;

Is this valid syntax? I'm a little surprised, but I think I can see
what's happening.

Try something more like:
   SELECT * INTO o FROM expected_stuff...

See if that makes a difference
--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: foreign key support for inheritance
Next
From: "Ted Byers"
Date:
Subject: Re: OT: Canadian Tax Database