Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generate table aliases in SQL's?

Paul JorstadMar 21 2017 — edited Jul 12 2017

Hello, I have a quite few queries which is written without table aliases like (well, very simple example):

select dummy from dual

Now, I need to refactor the query with a table alias. It is not that important what the alias should be, but say "d" in this case:

select d.dummy from dual d

As I have hundreds of queries, I would like to do this in an automated process, using a tool that can be executed from PL/SQL.

Do you know if this is possible?

Oracle 11g/12 r1

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2017
Added on Mar 21 2017
28 comments
5,726 views