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 |
what is a collection?
How can you find out which query is taking lot of time to execute in cobol-db2 program ?
What is copy pending and check pending in db2?
What is correlation names?
What can the SET option of the Repair Utility accomplish?
What is the difference between Primary key and unique index?
Why do we need to create an alias if we can directly use the table name? What are the benefits of referring a table name by its alias? Also, when should we go for alias and when for synonyms?
Give the name of some fields form sqlca.
What is db2 bind process?
What is plan in cobol db2?
What is the difference between oracle and db2?
What is the default page size of buffer pools?