php man page for oci_statement_type

Query: oci_statement_type

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

OCI_STATEMENT_TYPE(3)													     OCI_STATEMENT_TYPE(3)

oci_statement_type - Returns the type of a statement

SYNOPSIS
string oci_statement_type (resource $statement)
DESCRIPTION
Returns a keyword identifying the type of the OCI8 $statement.
PARAMETERS
o $statement - A valid OCI8 statement identifier from oci_parse(3).
RETURN VALUES
Returns the type of $statement as one of the following strings. Statement type Returns FALSE on error.
EXAMPLES
Example #1 oci_statement_type(3) example <?php $conn = oci_connect('hr', 'welcome', 'localhost/XE'); $stid = oci_parse($conn, 'DELETE FROM departments WHERE department_id = 130;'); if (oci_statement_type($stid) == "DELETE") { trigger_error('You are not allowed to delete from this table', E_USER_ERROR); } else { oci_execute($stid); // delete the row } oci_free_statement($stid); oci_close($conn); ?> PHP Documentation Group OCI_STATEMENT_TYPE(3)
Related Man Pages
oci_fetch_assoc(3) - php
oci_define_by_name(3) - php
oci_fetch_row(3) - php
oci_field_precision(3) - php
oci_field_type_raw(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch