Re: select, columns, and aliases

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: select, columns, and aliases
Дата
Msg-id 20040723154949.GA17787@wolff.to
обсуждение исходный текст
Ответ на select, columns, and aliases  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
On Fri, Jul 23, 2004 at 02:48:01 -0700,
  CSN <cool_screen_name90001@yahoo.com> wrote:
> Is it possible to automatically prefix a table alias
> (or table name or something else even) to each column
> in a select list? For example:
>
> select a.*, b.*
> from tablea a
> inner tableb b
> on a.id=b.aid;
>
> results:
>
> a_id, a_name, b_id, b_name, b_aid

I don't know of any Postgres feature that allows for computed aliases
at the SQL level. If the SQL is being generated by a program, the
program could potentially do this for you.

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

Предыдущее
От: Secrétariat
Дата:
Сообщение: Re: Connexion to Postgresql using TCP/IP
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Connexion to Postgresql using TCP/IP