What is the difference between SYNONYM and ALIAS?

Answer Posted / s

SYNONYM and ALIAS are alternate names to a table. A SYNONYM
is dropped when the table is dropped whereas an alias is
not dropped if the table it is defined on is not dropped.

Is This Answer Correct ?    26 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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


Can there be more than one cursor open for any program?

657


before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

1710


Mention the definition of cobol in varchar field.

688


Mention the different locking levels that are available in db2.

645






How to access db2 tables in mainframe?

611


How does coalesce work?

584


Define check constraint.

642


What is db2?

739


What is the syntax for creating a table in the db2 database?

626


What is null in db2?

571


Name the various locking levels available?

632


What are the different types of base tables?

583


What is phantom read in db2?

636


Can we delete records from view?

566