Isolating a record column from a PL-Pgsql function call ?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема Isolating a record column from a PL-Pgsql function call ?
Дата
Msg-id 482E80323A35A54498B8B70FF2B8798003E58E4B01@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Isolating a record column from a PL-Pgsql function call ?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: Isolating a record column from a PL-Pgsql function call ?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: Isolating a record column from a PL-Pgsql function call ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

Hi:

 

I have a PL-Pgsql function that returns a record of a type that have 4 elements (columns).  Let’s say the first element/column is called “id_num”.  Is there a way I can specify the id_num element of the record returned from iside a query?

 

For example, select col1 from thetable where my_plpgsql_fn(col2).id_num = 123;

 

(my_plpgsql_fn is the function call, id_num is the columns I want returned).

 

Thanks

-dave

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

Предыдущее
От: Ketema Harris
Дата:
Сообщение: Re: View vs Constantly Updated Table
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: monitor effectiveness of fillfactor and vacuums