dbTalk Databases Forums  

Is there something for a COLUMN like SYNONYM is for a TABLE?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Is there something for a COLUMN like SYNONYM is for a TABLE? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Tkatch
 
Posts: n/a

Default Is there something for a COLUMN like SYNONYM is for a TABLE? - 10-17-2007 , 01:09 PM






Hello,

i am working with Oracle 9i on a project where the TABLEs and COLUMNs
conform to some standard, which, IMO, makes the names too tedious to
use in ad hoc queries. To ease use, i CREATEd a SYNONYM for each
TABLE, and i am happier with it now.

I would like to do the same thing to the COLUMN names (remove the
project/table prefix, add in vowels, correct typos, etc...), but there
are no SYNONYMs for COLUMN names. So, i was thinking of DROPping the
SYNONYM idea, and just renaming both TABLEs and COLUMNs in a new VIEW
for each TABLE.

I have two questions. One, will using a VIEW (straightforward select
col_1, col_2, ..col_n from table) be inefficent, or is it the same as
querying the TABLE directly? Two, is there something for a COLUMN like
SYNONYM if for a TABLE?

B.

Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Is there something for a COLUMN like SYNONYM is for a TABLE? - 10-17-2007 , 02:47 PM






Brian Tkatch wrote:
Quote:
Hello,

i am working with Oracle 9i on a project where the TABLEs and COLUMNs
conform to some standard, which, IMO, makes the names too tedious to
use in ad hoc queries. To ease use, i CREATEd a SYNONYM for each
TABLE, and i am happier with it now.

I would like to do the same thing to the COLUMN names (remove the
project/table prefix, add in vowels, correct typos, etc...), but there
are no SYNONYMs for COLUMN names. So, i was thinking of DROPping the
SYNONYM idea, and just renaming both TABLEs and COLUMNs in a new VIEW
for each TABLE.

I have two questions. One, will using a VIEW (straightforward select
col_1, col_2, ..col_n from table) be inefficent, or is it the same as
querying the TABLE directly? Two, is there something for a COLUMN like
SYNONYM if for a TABLE?

B.
Only with a view and the efficiency is something you need to test
with your queries using your hardware with your application data.
Likely it will be small enough to be ignored.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.