Re: RfD: more powerful "any" types

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: RfD: more powerful "any" types
Дата
Msg-id 4AAC26AF.2000206@dunslane.net
обсуждение исходный текст
Ответ на Re: RfD: more powerful "any" types  (decibel <decibel@decibel.org>)
Ответы Re: RfD: more powerful "any" types  (decibel <decibel@decibel.org>)
Список pgsql-hackers

decibel wrote:
>
>
> Speaking of concatenation...
>
> Something I find sorely missing in plpgsql is the ability to put 
> variables inside of a string, ie:
>
> DECLARE
> v_table text := ...
> v_sql text;
> BEGIN
> v_sql := "SELECT * FROM $v_table";
>
> Of course, I'm assuming that if it was easy to do that it would be 
> done already... but I thought I'd just throw it out there.
>

Then use a language that supports variable interpolation in strings, 
like plperl, plpythonu, plruby .... instead of plpgsql.

cheers

andrew


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

Предыдущее
От: daveg
Дата:
Сообщение: Re: RfD: more powerful "any" types
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: plperl returning setof foo[]