oci_parse
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.