Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Dynamic Column Aliases

Re: Dynamic Column Aliases

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Fri, 28 Jan 2005 16:28:33 -0800
Message-ID: <1106958361.699587@yasure>


Mike Davis wrote:

> Is it possible to have dynamically aliased columns in a select
> statement without using dynamic sql?
>
> I'm wondering if there is a way to do something like the following:
>
>
> SELECT <fieldname> AS <package_name>.<constant> FROM <table>
>
> Thanks in advance.
>
> --Mike

If you concatenate strings together what would stop you?

What would stop me is that the aliased name is meaningless and I rarely see any value in AS ... except when creating a view or cursor based on the use of a function.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Fri Jan 28 2005 - 18:28:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US