What is the difference between SYNONYM and ALIAS?

Answer Posted / asr

SYNONYM - 1)It is a private object.
2)Only user who created it,can access it.
3)When the base table is dropped,automatically
sunonym wll drop.
4)SYSADM authority is not needed to create synonym

ALIAS - 1)It is a global object.
2)Any user can access it.
3)When the base table is dropped,automatically
sunonym wll not drop.
4)SYSADM authority is needed to create synonym

Is This Answer Correct ?    18 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between bind and rebind in db2?

848


What is the syntax for FETCH in DB2 ?

672


How to find the number of rows in db2 tables?

614


How do we specify index to include or not during bind process.

1674


Can we update view in db2?

558






What is cursor stability in db2?

809


What are the two types of logging in the db2 database? Explain them.

578


Define db2 and its databases?

618


What is a db2 collection?

603


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

698


How to check sequence on a table in db2?

598


SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.

2149


Explain the contents that are a part of dclgen.

655


What is sqlca?

618


What is schema in db2?

574