Re: SQL*Plus problem on COLUMN HEADING

From: Eric Lyders-Gustafson <ericlg_at_homemail.com>
Date: Fri, 29 May 1998 11:00:06 -0500
Message-ID: <356EDB85.1C31831_at_homemail.com>


You could also just use the aliases in the select statement: (Use quotes if the aliases have spaces, like "Name 1" instead of Name1)

select TABPREFIX.TABNAME1.NAME Name1,

         TABPREFIX.TABNAME2.NAME Name2
from TABPREFIX.TABNAME1, TABPREFIX.TABNAME2;

Pino Venturella wrote:

> Hi All,
> I have 2 tables with 2 columns with the same name.
> I'd like to use SQL*Plus to get a 'nice output' so I wrote a file called
> nametest.sql where I put
>
> COLUMN NAME HEADING WrongHead
> COLUMN TABPREFIX.TABNAME1.NAME HEADING Name1
> COLUMN TABPREFIX.TABNAME2.NAME HEADING Name2
> select TABPREFIX.TABNAME1.NAME, TABPREFIX.TABNAME2.NAME from
> TABPREFIX.TABNAME1, TABPREFIX.TABNAME2;
>
> Then at SQL> prompt I write _at_nametest and I'd like to see 2 columns with
> headers Name1 and Name2 but I see that for both columns the header is
> WrongHead.
>
> Is there any way to solve my problem? Am I doing something wrong?
> Pls if this is not the rigth newsgroup point me to the rigth one.
>
> Thanks in advance, Pino
Received on Fri May 29 1998 - 18:00:06 CEST

Original text of this message