Re: set the value of AS clause name in stored procedure
Peter Brawley Wrote:
-------------------------------------------------------
> Simplest possible example given table t(i,j)...
>
>
> set @sql = "select i as 'first column',j as
> 'second column' from t";
> prepare stmt from @sql;
> execute stmt;
> +--------------+---------------+
> | first column | second column |
> +--------------+---------------+
> | 2 | 2 |
> +--------------+---------------+
> drop prepare stmt;
>
>
> In your case you'd concat strings as required to
> assemble @sql.
thanks for this added response; using this technique I was able to do exactly what I wanted to. thanks again.
Subject
Views
Written By
Posted
1056
December 24, 2020 05:10PM
452
December 24, 2020 06:49PM
483
December 25, 2020 08:21AM
438
December 25, 2020 11:08AM
Re: set the value of AS clause name in stored procedure
502
December 26, 2020 08:43AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.