Re: plpgsql mixing variable in SELECT INTO ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql mixing variable in SELECT INTO ?
Дата
Msg-id 26527.1046799949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plpgsql mixing variable in SELECT INTO ?  ("Ben-Nes Michael" <miki@canaan.co.il>)
Список pgsql-general
"Ben-Nes Michael" <miki@canaan.co.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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ben-Nes Michael"
Дата:
Сообщение: Re: plpgsql mixing variable in SELECT INTO ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SETOF