Re: plpgsql mixing variable in SELECT INTO ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il>
Cc: "postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql mixing variable in SELECT INTO ?
Date: 2003-03-04 17:45:49
Message-ID: 26527.1046799949@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il> writes:
> You mean I cant use the full power of the SELECT as mentioned in the manual
> and when using SELECT INTO I must use * and I can refine my query to some of
> the fields ?

Certainly you can. But when you assign into a row variable, you have to
provide all the row variable's columns, in order. How else would you
expect it to work?

> Also its quite strange that my code worked in 7.3.1-

I don't believe it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-03-04 18:10:56 Re: SETOF
Previous Message Ben-Nes Michael 2003-03-04 17:22:01 Re: plpgsql mixing variable in SELECT INTO ?