Re: Using a variable as tablename ins plpgsql?

Поиск
Список
Период
Сортировка
От Fernando Moreno
Тема Re: Using a variable as tablename ins plpgsql?
Дата
Msg-id b1c45530810200954j79388182t5630f38f8e982282@mail.gmail.com
обсуждение исходный текст
Ответ на Using a variable as tablename ins plpgsql?  (Glyn Astill <glynastill@yahoo.co.uk>)
Список pgsql-general
2008/10/20 Glyn Astill <glynastill@yahoo.co.uk>
Hi people,

Hopefully this is a quickie, I want to pass in a table name to a plpgsql function and then use that table name in my queries.

Is EXECUTE the only way to do this?
 
As far as I know, yes. That's the only way to create queries using dynamic table and column names.

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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Using a variable as tablename ins plpgsql?
Следующее
От: Joshua Drake
Дата:
Сообщение: Booth Volunteers for LISA 08 (San Diego)