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
What is the difference between bind and rebind in db2?
What is the syntax for FETCH in DB2 ?
How to find the number of rows in db2 tables?
How do we specify index to include or not during bind process.
Can we update view in db2?
What is cursor stability in db2?
What are the two types of logging in the db2 database? Explain them.
Define db2 and its databases?
What is a db2 collection?
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
How to check sequence on a table in db2?
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.
Explain the contents that are a part of dclgen.
What is sqlca?
What is schema in db2?