Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: column name as a part of the result set
> Is it possible to get the column name as a part of the result in a
> query without using PL/SQL? I can use a procedure if necessary.
How do you propose to use a stored procedure, but not use PL/SQL?????
It seems to me that you already know the column name. After all, you already have the following in your sample SQL statement:
> Select
> at.ID_COL,
> at.VAL_COL,
> column_name (this is what I need)
So why not turn this into:
Select
at.ID_COL, at.VAL_COL, "VAL_COL" as column_name
Does that work?
HTH,
Brian
-- =================================================================== Brian Peasland dba_at_remove_spam.peasland.com Remove the "remove_spam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three"Received on Thu Feb 12 2004 - 14:24:55 CST