pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: axel@pqrs.de
Subject: Re: Default column titles in a select...
Date: Wed, 19 Feb 2003 16:10:40 +0100
Message-ID: <3E539E6F.A4841B91@rodos.fzk.de> (raw)

>
> When doing the following select statement:
>     select * from a,b where a.objid=b.objid
> postgresql returns four columns labeled
>     objid  atext  objid  atext
> instead of what I expected:
>     a.objid  a.atext  b.objid  b.atext
>
> With the current result I'm unable to differentiate
> between the two 'atext' column. Is there any possibility
> to get column headers including the table name in the
> result ?
>
SELECT a.objid AS a_objid, a.atext AS a_atext, b.objid AS b_objid,
b.atext AS b_atext
 FROM a, b WHERE a.objid=b.objid ;

Does this help? Probably not really.

Regards, Christoph





view thread (4+ messages)  latest in thread

Message-ID: <3E539E6F.A4841B91@rodos.fzk.de>
Permalink:  ../3E539E6F.A4841B91@rodos.fzk.de/
Also on:    postgresql.org/message-id/3E539E6F.A4841B91@rodos.fzk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, axel@pqrs.de
  Subject: Re: Default column titles in a select...
  In-Reply-To: <3E539E6F.A4841B91@rodos.fzk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox