(PHP 3 >= 3.0.7, PHP 4, PHP 5)
ocicommit -- `Iá 1/2 >>^I'"O'DDu"A^E^A^I~n'|`Aí
~Aè^E"o
bool
ocicommit ( resource connection )
ocicommit() `Iá 1/2 >> Oracle 'Anot 1/2 'O connection
~O'y^O'U^O"EDDu"A^E^A^I~n'|`Aí'E"I"Eù'OD^I'"O'DDu"A'O"i 3/4 "a!lb
"I^A~Aaeu"A`A'y×'O"Eu~A÷'A"E ocicommit() u"A'O~A·¨!lb
例子 1. ocicommit()
<?php // Login to Oracle server $conn = OCILogon('scott', 'tiger');
// Parse SQL $stmt = OCIParse($conn, "INSERT INTO employees (name, surname) VALUES ('Maxim', 'Maletsky')");
// Execute statement OCIExecute($stmt);
// Commit transaction $committed = OCICommit($conn);
// Test whether commit was successful. If error occurred, return error message if (!$committed) { $error = OCIError($conn); echo 'Commit failed. Oracle reports: ' . $error['message']; }
// Close connection OCILogoff($conn); ?>
|
|
^2^I 1/4 ^u ocirollback()!lb