What is an alias and how does it differ from a synonym?

Answer Posted / guru

Alias & Synonyms are alternate of table or a view.

ALIAS SYNONYM


1. it is a global object. 1. it is aprivate object.
2. any one can access the 2. but the one who create
alias. the alias can only
access it.
3.when the base table is
droped.Alias is not dropped. 3. when the base table is
droped.SYNONYM is dropped
automatically.

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

2769


What does runstats do in db2?

614


What is db2 instance?

598


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

621


What is the difference between cursor and select statement?

624






can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1816


Explain various types of locks in db2?

707


What is null in db2?

581


What is the maximum No of rows per page?

639


What are catalog tables in db2?

614


Which component is responsible for processing sql statements and selecting access paths?

680


Explain package in db2 and its advantages?

607


How do you select a row using indexes in db2?

658


What is clone table?

598


What is cascading rollback?

629