X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 74869475458 for ; Wed, 19 Feb 2003 09:26:01 -0500 (EST) Received: from server.aroxis.de (unknown [217.115.138.104]) by postgresql.org (Postfix) with ESMTP id 63FFC475425 for ; Wed, 19 Feb 2003 09:26:00 -0500 (EST) Received: by server.aroxis.de (Postfix, from userid 12346) id C6DE51725A; Wed, 19 Feb 2003 15:26:02 +0100 (CET) Received: from pqrs.de (p508DBA4E.dip.t-dialin.net [80.141.186.78]) by server.aroxis.de (Postfix) with ESMTP id 0D14917258 for ; Wed, 19 Feb 2003 15:25:41 +0100 (CET) Message-ID: <3E5393E5.6050901@pqrs.de> Date: Wed, 19 Feb 2003 15:25:41 +0100 From: Axel Schlueter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Default column titles in a select... Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-100.8 required=6.0 tests=SIGNATURE_SHORT_DENSE, SPAM_PHRASE_00_01, USER_AGENT, USER_AGENT_MOZILLA_UA, USER_IN_WHITELIST, X_ACCEPT_LANG version=2.43 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/426 X-Sequence-Number: 11824 Hi, maybe it's a novice question, but I stumpled across the following problem and couldn't find a solution: create table c( atext varchar ); create table a( objid smallint, )INHERITS(c); create table b( objid smallint, )INHERITS(c); insert into a values(1,'foobar'); insert into b values(1,'carcddr'); 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 ? Bye, Axel -- "The virus spreads using a Microsoft vulnerability known as 'MS SQL Server'"