PDO::commit
Sends commands to the database that were issued after calling PDO::beginTransaction and returns the connection to auto commit mode.
Syntax
bool PDO::commit();
Return Value
true if the method call succeeded, false otherwise.
Remarks
PDO::commit is not affected by (and does not affect) the value of PDO::ATTR_AUTOCOMMIT.
See PDO::beginTransaction for an example that uses PDO::commit.
Support for PDO was added in version 2.0 of the Microsoft Drivers for PHP for SQL Server.
See Also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ