Re: use of alias

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: use of alias
Дата
Msg-id 37ed240d0802112159s6595da16i188c235853cfa2ce@mail.gmail.com
обсуждение исходный текст
Ответ на Re: use of alias  (Brett McBride <brett@deakin.edu.au>)
Список pgsql-hackers
Though to be safe you should be quoting MT and ST with quote_ident()
before putting them into a dynamic statement.

Cheers
BJ

On Feb 12, 2008 4:38 PM, Brett McBride <brett@deakin.edu.au> wrote:
> you could do this with 'execute' like so:
>
> execute 'select  count(*) into count1 from ' || MT || ',' || ST || '
> where ' || MT || '.phonenumber= ' || ST || '.phonenumber' into v_variable;
>
> brett


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

Предыдущее
От: Brett McBride
Дата:
Сообщение: Re: use of alias
Следующее
От: Matteo Beccati
Дата:
Сообщение: Re: patternsel() and histogram_selectivity() and the hard cutoff of 100