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 |
Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?
Update command
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What techniques will be used to avoid deadlock??
What is the difference between a package and a plan?
6 Answers Infosys, L&T, Mphasis,
What is index cardinality?
what is a corelated subquerry?
What is the FREE command?
What is the meaning of -805 SQL return code?
If I have a view which is a join of two or more tables, can this view be updateable?
What are the various data types available in db2?
Which one allows duplicate values Union or Union All ?