Re: ORDER BY with plpgsql parameter

Поиск
Список
Период
Сортировка
От Lee Harr
Тема Re: ORDER BY with plpgsql parameter
Дата
Msg-id BAY2-F26Nj4058ouEJL00001afc@hotmail.com
обсуждение исходный текст
Ответ на ORDER BY with plpgsql parameter  (Thomas Schoen <t.schoen@vitrado.de>)
Список pgsql-general
>is it possible to use a parameter of a plpgsql-function to order a
>selection
>inside the function?


You need to use the FOR-IN-EXECUTE style of query. That way
you can use any string you want (including text passed in as
a parameter) to build the query inside the function ...


http://www.postgresql.org/docs/7.4/static/plpgsql-control-structures.html
( it is the very last thing on that page )

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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

Предыдущее
От: Duane Lee - EGOVX
Дата:
Сообщение: Trigger & Function
Следующее
От: Mike Nolan
Дата:
Сообщение: Re: [PERFORM] Trigger & Function