oci_parse

PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0
oci_parse - Prepares an Oracle statement for execution
Manual
Code Examples

oci_parse( resource$connection, string$sql ): resource|false

Prepares sql using connection and returns the statement identifier, which can be used with oci_bind_by_name, oci_execute and other functions.

Statement identifiers can be freed with oci_free_statement or by setting the variable to null.

Parameters

connection

An Oracle connection identifier, returned by oci_connect, oci_pconnect, or oci_new_connect.

sql

The SQL or PL/SQL statement.

SQL statements should not end with a semi-colon (";"). PL/SQL statements should end with a semi-colon (";").

Return Values

Returns a statement handle on success, or false on error.

Notes

Note:

This function does not validate sql. The only way to find out if sql is a valid SQL or PL/SQL statement is to execute it.

Related Functions

Example of oci_parse

Show all examples for oci_parse

PHP Version:


Function oci_parse:

Oracle OCI8 Functions

Most used PHP functions