Home > Database > Mysql Tutorial > body text

MySQL transaction rollback demonstration detailed explanation

黄舟
Release: 2017-08-02 15:42:28
Original
2583 people have browsed it

MySQL transaction rollback demonstration detailed explanation

1. First look at the data in the student table

MySQL transaction rollback demonstration detailed explanation

2. Enter start transaction to open the transaction

MySQL transaction rollback demonstration detailed explanation

3. Update first Row the data, and then check the results and find that the update was successful.

MySQL transaction rollback demonstration detailed explanation

4. Pay attention, the rollback starts here. Enter rollback. Then look at the data in the first row, and you can find that it has changed back with the new data.

MySQL transaction rollback demonstration detailed explanation

5. Finally, when we look at the entire table, we can see that it is still the same as before.

MySQL transaction rollback demonstration detailed explanation

The above is the detailed content of MySQL transaction rollback demonstration detailed explanation. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template