Re: How to alias table columns in result?
От | Nick Stone |
---|---|
Тема | Re: How to alias table columns in result? |
Дата | |
Msg-id | 20050811095451.B475F252AE9@smtp.nildram.co.uk обсуждение исходный текст |
Ответ на | Re: How to alias table columns in result? (nori <kodmasin@gmail.com>) |
Ответы |
Re: How to alias table columns in result?
|
Список | pgsql-sql |
Yes - just alias the columns you need to alias Nick -----Original Message----- From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of nori Sent: 11 August 2005 10:48 To: Mischa Sandberg Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] How to alias table columns in result? Thanks Sorry, my question was missing one important detail. My tables have quite a lot columns (which unfortunately have same names in both tables) so is it possible to do same as below but without specifying alias for each column. Now my queries are long and they do not look nice. boris On 8/11/05, Mischa Sandberg <mischa.sandberg@telus.net> wrote: > SELECT d.name as "d.name", > d.index as "d.index", > c.name as "c.name", > ... ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend
В списке pgsql-sql по дате отправления: