In BIND, isolation level parameter specifies the duration
of page lock and ACQUIRE, RELEASE also do almost the same
thing. What is the exact difference between the two? Do
they work in conjunction while executing SQL queries and
obtaining locks?
Answer Posted / priya
When a tablespace is locked, another task cannot have
access to the entire table itself. So here, does page level
locking matter and what difference remains between
ISOLATION and ACQUIRE/RELEASE?
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of rollback and commit?
What is ibm db2 database?
What is dbrm? What it contains?
How to test SQL -911 error while developing COB-DB2 program
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.
What does db2 mean?
What is host variable in db2 cobol?
How to compare data between two tables in db2?
How do I import data from excel to db2?
How to access db2 tables in mainframe?
Explain the contention situations caused by locks?
When the like statement is used?
Before you give the explain statement, what are the prerogatives?
How do I add a column to an existing table in db2?
What is consistency token in db2?