一个可保持的游标(或结果),就是说该游标在包含它的事务被提交后,也不会自动地关闭。
A holdable cursor, or result, is one that does not automatically close when the transaction that contains the cursor is committed.
默认的事务行为是自动提交模式。在该模式下,每个语句在发送到目标服务器时进行提交。
The default transactional behavior is auto-commit mode, where each statement is committed as it is sent to the target server.
在没有自动提交的标准JDBC代码中,应用程序使用一个连接来访问和更新数据,然后提交该连接以结束这个事务(并启动另一个事务)。
In standard JDBC code without auto-commit, the application USES a connection to access and update data, then commits the connection to end the transaction (and start another).
事务性工作可以根据请求自动撤销(假设您还没有提交它),这使得脚本中的错误处理变得更加容易。
Transactional work can also be automatically undone at your request (provided you haven't already committed it), which makes error handling in your scripts easier.
不幸的是,并不是每种数据库都支持事务,所以当第一次打开连接时,PDO需要在所谓的“自动提交(auto - commit)”模式下运行。
Unfortunately, not every database supports transactions, so PDO needs to run in what is known as "auto-commit" mode when you first open the connection.
在交互完成后,所有的容器管理事务被自动提交,因此在web容器中容器管理的事务不使用该属性。
All container managed transactions are auto-committed after the interaction completes, and so this attribute is not used by container managed transactions in the Web container.
在交互完成后,所有的容器管理事务被自动提交,因此在web容器中容器管理的事务不使用该属性。
All container managed transactions are auto-committed after the interaction completes, and so this attribute is not used by container managed transactions in the Web container.
应用推荐