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



i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / kk

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

i want to know how the commit option works,how it save the changes? it will update the database or..

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

i want to know how the commit option works,how it save the changes? it will update the database or..

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

i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / kalyan

hi kk
how will restart from 901th record?
please explain

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

Define data page.

0 Answers  


What do you mean by cursor?

0 Answers  


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.

1 Answers  


Mention the location where the output received from explain statement is stored.

0 Answers  


Explain how can you do the explain of a dynamic sql statement?

0 Answers  






What is db2 purescale?

0 Answers  


What is a data page?

1 Answers  


what is Static and dynamic linking

1 Answers   Virtusa,


wht is d/f between union and joins ?

2 Answers  


I use CS and update a page. Will the lock be released after I am done with that page?

2 Answers  


Can All Users Have The Privilege To Use The SQL Statement Select (DML)?

1 Answers  


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.

0 Answers  


Categories