What is an alias and how does it differ from a synonym?
Answer Posted / yogendra shinde
Hi,
Alias and Synonym both are alternative names to a table
name. But the major difference between Alias and Synonym is
that
>>>Alias can be used to refer a table at different location
( meaning different or remote system and it is not provate
to user who has created it)
>>> Synonym is used to refer table in the same location
with different name. Synonym is very much provate to the
user who has created it.
>>> Regarding dropping ALIAS and SYNONYM I am doubtful.
I have read that if we drop base table or base view then
both alias and synonym are also dropped (As per C.J.DATE
DB2 version 4.0). Please update if anybody has more on this.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
Is db2 free?
What is runstats and reorg in db2?
What do you mean by between and in? Is between inclusive of specified range values?
What is precompiler in db2?
What is cursor in dbms?
What is view db2?
What is the use of db2 optimizer?
How to execute stored procedure in db2 command editor?
What is the use of db2?
What are bind parameters in db2?
What is the difference between db2 and oracle?
What is ibm db2 client?
How can you quickly find out the # of rows updated after an update statement?
What is access path in db2?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?