Re: query ... returned 4 columns

From: Richard Huxton <dev(at)archonet(dot)com>
To: Sorin Schwimmer <sxn02(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: query ... returned 4 columns
Date: 2007-03-08 16:07:32
Message-ID: 45F034C4.70304@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-08 16:08:04 Re: query ... returned 4 columns
Previous Message Richard Huxton 2007-03-08 16:04:11 Re: foreign key support for inheritance