retrieving fields in plpgsql

Поиск
Список
Период
Сортировка
От James Gregory
Тема retrieving fields in plpgsql
Дата
Msg-id 1048091540.30665.58.camel@pirate.bridge.anchor.net.au
обсуждение исходный текст
Ответы Re: retrieving fields in plpgsql
Список pgsql-general
Hi all,

I need to be able to get the value of a field in the new record provided
to triggers. The catch is that the name of the variable that I need will
be constructed at run time, it will then be used as part of a dynamic
query. So basically I want

x := "fieldname";
y := new.x;

Can it be done? how?

Thanks,

James.


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Limitations in PL/perl
Следующее
От: Tom Lane
Дата:
Сообщение: Re: retrieving fields in plpgsql