Re: from string to table...?

Поиск
Список
Период
Сортировка
От will trillich
Тема Re: from string to table...?
Дата
Msg-id 20010323104145.B20101@mail.serensoft.com
обсуждение исходный текст
Ответ на Re: from string to table...?  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
On Fri, Mar 23, 2001 at 07:53:39AM +0000, Richard Huxton wrote:
> will trillich wrote:
> > is there a way to write sql/plpgsql that'll take a varchar
> > argument (table and field names) and be able to turn it into the
> > appropriate query?
>
> You can use the "EXECUTE" statement in plpgsql (v7.1) to dynamically
> build a query. The catch is you can't return rows from a function. You
> could use it to build a view and then query that.
>
> Probably easiest to do in the application layer though.

<blank stare> um, what's "application layer" mean? :)

--
will@serensoft.com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

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

Предыдущее
От: "Mihai Gheorghiu"
Дата:
Сообщение: Migration from MSAccess
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lost Trigger(s)?