X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DD22C475425 for ; Wed, 19 Feb 2003 10:07:04 -0500 (EST) Received: from biglumber.com (biglumber.com [207.228.252.42]) by postgresql.org (Postfix) with SMTP id CCE4F475925 for ; Wed, 19 Feb 2003 10:07:03 -0500 (EST) Received: (qmail 2967 invoked from network); 19 Feb 2003 15:07:07 -0000 Received: from biglumber.com (HELO localhost) (207.228.252.42) by 0 with SMTP; 19 Feb 2003 15:07:07 -0000 From: greg@turnstep.com To: pgsql-sql@postgresql.org Subject: Re: Default column titles in a select... X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 In-Reply-To: <3E5393E5.6050901@pqrs.de> Date: Wed, 19 Feb 2003 15:07:07 -0000 X-Mailer: JoyMail 1.36 Message-ID: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/427 X-Sequence-Number: 11825 -----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-----