Detailed explanation of transaction control in the case of using MySQL in the django background

 

Write in front:

  By default, django will set autocommit to "1", which means that each operation against the database will be made into a "separate" transaction; the advantage of this processing is that it is convenient,

  When programming, you can write less code. For example, we don't need to "start transaction" first and then "commit" or "rollback" after the operation.

 

 

 

----

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325261694&siteId=291194637