pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg@turnstep.com
To: pgsql-sql@postgresql.org
Subject: Re: Default column titles in a select...
Date: Wed, 19 Feb 2003 15:07:07 -0000
Message-ID: <a795db703ad93b20298c89fc7add34de@biglumber.com> (raw)
In-Reply-To: <3E5393E5.6050901@pqrs.de>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>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

You will have to explicitly specify them yourself:

SELECT a.objid AS "a.objid", a.atext AS "a.atext",
       b.objid AS "b.objid", b.atext AS "b.atext"

to get the results you want. 

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200302191003

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+U5zTvJuQZxSWSsgRAlxWAKDrB+q9NsiXLAsudRQDu+2p7ma94wCeKMC/
box5pl2CIsjsjD979gKZ3/8=
=0k+n
-----END PGP SIGNATURE-----





view thread (4+ messages)  latest in thread

Message-ID: <a795db703ad93b20298c89fc7add34de@biglumber.com>
Permalink:  ../a795db703ad93b20298c89fc7add34de@biglumber.com/
Also on:    postgresql.org/message-id/a795db703ad93b20298c89fc7add34de@biglumber.com

 · 

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: greg@turnstep.com
  Subject: Re: Default column titles in a select...
  In-Reply-To: <a795db703ad93b20298c89fc7add34de@biglumber.com>

* 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