Hướng dẫn oci_execute php
(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_execute — Executes a statement Descriptionoci_execute(resource After execution, statements like Each parsed statement may be executed multiple times, saving the cost of re-parsing. This is commonly used for Parametersstatement A valid OCI statement identifier. mode An optional second parameter can be one of the following constants: Execution Modes
Using When inserting or updating data, using transactions is recommended for relational data consistency and for performance reasons. If Return Values Returns ExamplesExample #1 oci_execute() for queries
= oci_connect('hr', 'welcome', 'localhost/XE');$stid = oci_parse($conn, 'SELECT * FROM employees'); Example #2 oci_execute() without specifying a mode example
Example #3
oci_execute() with
Example #4 oci_execute() with different commit modes example
Example #5 oci_execute() with
= oci_connect('hr', 'welcome', 'localhost/XE');$stid = oci_parse($conn, 'SELECT * FROM locations'); Notes
See Also
tower98 at gmail dot com ¶ 12 years ago
michaelhughes at strath dot ac dot uk ¶ 6 years ago
|