Re: ORDER BY with plpgsql parameter

Поиск
Список
Период
Сортировка
От Thomas Schoen
Тема Re: ORDER BY with plpgsql parameter
Дата
Msg-id 200406021958.50911.t.schoen@vitrado.de
обсуждение исходный текст
Ответ на Re: ORDER BY with plpgsql parameter  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Thank you all for your detailed answers!

My conclusion is:
- Use "FOR IN EXECUTE" if you want to sort by many different columns depending
on the function paramaters.
- Use "IF" and a seperate SQL-statement for every sort-column provided by the
function parameter if you only want to sort by a few different columns and
want to optimize the performance of your function.

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

Предыдущее
От: Shachar Shemesh
Дата:
Сообщение: Re: ODBC, ADO, Return Value from SP problem
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: GRANT question