what is difference between commit and rollback.?
Answers were Sorted based on User's Feedback
Answer / malli.gontla
suppose u have one table which is in database. The table
contains some records. U want to modify one record of table.
after modification, u don't want that new values for
the record. just u use rollback command. previous values are
placed in database.
Example:
Case 1: Roll Back
sno name palce
1 abc hyderabad
2 xyz bangalore.
This is the table and it contains some records.
Suppose if u want change the 2nd record, means palce
is changed to chennai.
After modification:
sno name palce
1 abc hyderabad
2 xyz Chennai.
Suppose if u want old values, means u don't want new
values. At that time u use roll back command
After useing rollback:
sno name palce
1 abc hyderabad
2 xyz bangalore.
after using roll back, the records are comes like
above(original records)
Case 2: Commit
sno name palce
1 abc hyderabad
2 xyz bangalore.
This is the table and it contains some records.
Suppose if u want change the 2nd record, means palce
is changed to chennai.
After modification:
sno name palce
1 abc hyderabad
2 xyz Chennai.
After useing commit:
sno name palce
1 abc hyderabad
2 xyz Chennai.
after using commit, the table is finilased.u can't get
old values by uisng roll back.
Once if u use commit,u can't get old values for using of
rollback. Before commit, u can get old values for rollback.
Is This Answer Correct ? | 112 Yes | 4 No |
Answer / prasad
Commit mean if change the values after commit u cont replace
old values.
Rollback mean if u r not given commit u will get previous
values.
Is This Answer Correct ? | 46 Yes | 8 No |
Answer / kaushal
Using commit, It saves any modification made within objects of database. We can not undo our transaction which done within commit.
Rollback is similar to undo button of any s/w browser. That is, when we make any changes in recodes of table, we can came back to previous form of that table by using rollback.
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / priyanka
COMMIT:Save Record Permanently in database
Syntax :COMMIT;
ROLLBACK: This is like undo
Syntax: ROLLBACK
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashish kumar
If transaction manager not found any unchecked exception then record is committed.If transaction manager found any unchecked exception then rollback.
Is This Answer Correct ? | 0 Yes | 0 No |
How can i insert a field in script without using executable program
With the use of secondary index we can make a program run faster but we are advised not to use secondary index why is that so??
can u add a new view to the existing view?
2 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
How to deactivate the sort button from the alv output
How to insert a line into abap internal tables?
What is the Use of LDB PNPCE in ABAP HR? what is NODES statement? I think we have to use GET PERAS event while using PNPCE. Can we use the same using PNP LDB? If yes,how? please give me some example to demonstrate PNPCE?
what is the status code when IDOC is created?
difference between report and module pool
what is the difference between function module alv and oop alv.
4 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
Read statement..
What is the use of 'for all entries'?
What is table pool?