|
oci_executeExecutes a statement Description
bool oci_execute
( resource
$statement
[, int $mode = OCI_COMMIT_ON_SUCCESS
] )
Executes a After execution, statements like INSERT will have data committed to the database by default. For statements like SELECT, execution performs the logic of the query. Query results can subsequently be fetched in PHP with functions like oci_fetch_array. Each parsed statement may be executed multiple times, saving the cost of re-parsing. This is commonly used for INSERT statements when data is bound with oci_bind_by_name. Parameters
Return Values
Returns Examples
Example #1 oci_execute for queries
<?php
Example #2 oci_execute without specifying a mode example
<?php
Example #3 oci_execute with
<?php
Example #4 oci_execute with different commit modes example
<?php
Example #5 oci_execute with
<?php Notes
See Also
|