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 to see the tables of 200 in client 100?
How many include can be included in the table??
What is the difference between Search help and Match code ?
how to write a Classical batch input program using transaction FK01 to create vendor/change the vendor address into R/3 system. (Call Transaction Method) plz mention the detail coding Tahnks, Rahul
what are the Joins used for internal Table?
What are the function modules that are generated when you activate a lockobject? : sap abap data dictionary
I have one sender and three Receiver..so how many idocs generate in outbound(sender)?
how to debug the smartform? plz tell me step by step process or screen shots?
What will happen if we write “WRITE” statement in the TOP_OF_PAGE? Can we write?
Can i have some Realtime Scenarios on Reports.
What is a persistent class?
6)what are the table controls in BDC ?