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!

creation of Synonym with renaming of a column

KarteekMay 25 2012 — edited May 25 2012
Hi Everyone,
i have two tables AB_ENTITY,R_COMPANY initially.

AB_ENTITY table contains (AB_ENTITY_id, AB_ENTITY_name) columns.
R_COMPANY table contains(R_COMPANY_id,R_COMPANY_name) columns.

my requirement is make R_COMPANY as a synonym to AB_ENTITY table. so,

i will drop R_COMPANY table and make it as a synonym to AB_ENTITY table , for this i created

create public synonym R_COMPANY for AB_ENTITY;


now R_COMPANY synonym contains (AB_ENTITY_id, AB_ENTITY_name) columns. but i want to rename AB_ENTITY_id as R_COMPANY_id.


because this column i am using for other table foreign key constraints .


so, please advice me .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2012
Added on May 25 2012
10 comments
828 views