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 we upload a text file having delimiters in to legacy system? : abap bdc
What are the steps need to setup before creating an IDoc?
Brief scenario of check table / value table?
8 Answers Accenture, Bristle Cone, IBM, Infosys, Yash Technologies,
2)In production what is the user exit?
what are use of ok_code in bdc
What are the data types of the abap/4 layer? : abap data dictionary
Screen wise process for creating sales order quotation through transaction code VA21
How to change the development class of any object?
Difference between sy-tabix and sy-index?
What are the two ways of searching an ABAP Object and How to navigate to them
What is the max no of screen no's we create
15) What is a Normal,Constant and Variable Window?