Re: Function Doubt

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Function Doubt
Дата
Msg-id 41F92145.40603@archonet.com
обсуждение исходный текст
Ответ на Function Doubt  (Wilton <wilton.wonrath@microwork.inf.br>)
Список pgsql-sql
Wilton wrote:
>       StrCampo = ''new.'' || qCampos.attname;
>       StrInsert = StrInsert || virgula || StrCampo || '' - '';
>    End Loop;
> 
>    Return new;
> End;
> 
> What i need to do for the variable StrCampo returns to me "SP", "RJ", i 
> mean, return a value inserted into the field.
> I do not want to use static command new.campo1, new.campo2....

Ah - you can't. Not in plpgsql, anyway. You should perhaps look at pltcl 
or plperl.

--  Richard Huxton  Archonet Ltd


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: hardware mod based on feedback from the list
Следующее
От: "Keith Worthington"
Дата:
Сообщение: Re: hardware mod based on feedback from the list