This topic created in 4595 days ago, the information mentioned may be changed or developed.
mysql是不是插入数据的时候都要commit()。有其他方法吗?
5 replies • 1970-01-01 08:00:00 +08:00
 |
|
db.autocommit = True
|
 |
|
@ binux 尝试了一下。依旧只是在当前会话中。并没有提交到数据库中
|
 |
|
注意会话的作用域
|
 |
|
应该是db.autocommit(True)
|
 |
|
感谢各位,学习了
|