Transaction in my SQL is limited to some engines. like InnoDB.
it is used basically to control replication and follow the ACID property.
it is used basically to control replication and follow the ACID property.
There is 2 stage of the transaction --
1) begin()
2) commit OR rollback
1) begin()
2) commit OR rollback
All DML which you write in between begin() and rollback/commit, if any operation fails then it will rollback the whole process and transaction which happens else it will commit means process is done.
The tables are being locked when we begin and after DML operations it is being unlocked.
begin
update table name
commit
or
rollback
Comments
Post a Comment