i want to know how the commit option works,how it save the
changes? it will update the database or what ? where we can
see these saved changes?
Answers were Sorted based on User's Feedback
Hi,
Mostly we are using commit mass insert and update time
only.suppose i insert 1000 records i am using count varable
i give commit every 100th records means it will
automatically update the data base.so it will affect 999th
records means 900 records ulready update in ur table.so we
can restart 901 records thats enough.you can see in ur
table.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / sankar
All changes happens to database are initially made in log,
after successful completion of unit of work (COMMIT),the
changes from log reflected into physical database. In case
of roll-back or un-successful completion, changes will not
be reflested into physical database.
Commit executed at the end of all transaction (explicitly
or inplicitly) irrespective of number of rows affected.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / era
commit will insert a unit of work after some define number
of record processed. That commit point will be taken and
the database updated.
Is This Answer Correct ? | 0 Yes | 0 No |
Define data page.
What do you mean by cursor?
db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog. c.in db2 database. d.none of the above.
Mention the location where the output received from explain statement is stored.
Explain how can you do the explain of a dynamic sql statement?
What is db2 purescale?
What is a data page?
what is Static and dynamic linking
wht is d/f between union and joins ?
I use CS and update a page. Will the lock be released after I am done with that page?
Can All Users Have The Privilege To Use The SQL Statement Select (DML)?
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.