| title | PDO::commit | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.prod | sql-non-specified | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.tgt_pltfrm | ||
| ms.topic | article | |
| ms.assetid | a0db4a00-9700-4f49-ab16-6522dd1101d3 | |
| caps.latest.revision | 8 | |
| author | MightyPen | |
| ms.author | genemi | |
| manager | jhubbard |
[!INCLUDEDriver_PHP_Download]
Sends commands to the database that were issued after calling PDO::beginTransaction and returns the connection to auto commit mode.
bool PDO::commit();
true if the method call succeeded, false otherwise.
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 [!INCLUDEssDriverPHP].