|
View previous topic :: View next topic
|
| Author |
Message |
mijanurit Currently Banned New User
Joined: 26 Aug 2005 Posts: 33 Location: bangalore
|
|
|
|
hi friends,
i know synonym and alias. if the base table is dropped then synonym also will be dropped automatically.
but for alias if we drop base table, alias will not be dropped automatically.
even in absence of base table we can create the alias.
I don't have preveleage to create synonym and alias that's why i can't be able to try this problem in my system.
In DB2 reference book written by C.J DATE, it is clearly mentioned that " if we drop base table then both synonym and alias will be dropped automatically."
which one is right?
plz clrfy my doubt.
thanks
regards
mijanurit |
|
| Back to top |
|
 |
priyesh.agrawal
Senior Member

Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Dropping a table or view has no effect on its aliases. But dropping a table or view does drop its synonyms.
Regards,
Priyesh. |
|
| Back to top |
|
 |
mijanurit Currently Banned New User
Joined: 26 Aug 2005 Posts: 33 Location: bangalore
|
|
|
|
thanks priyes.agarwal for information.
regards
mijanurit |
|
| Back to top |
|
 |
|
|