BAZA WIEDZY
KURSY
Bazy danych w PHP
Kurs AdvancedAJAX
Kurs ASP
Kurs ASP.NET
Kurs C++
Kurs CSS
Kurs HTML
Kurs HTML drugi
Kurs JavaScript
Kurs MySQL
Kurs PHP
Kurs RSS
Kurs XHTML
Obiekty DOM
MANUALE
CSS1 - W3C
DOM - w budowie
PHP 2005
PHP 2006
Wyrażenia regularne
SHOUTBOX
STAT
Online: 23 | UU: 551

ocistatementtype

(PHP 3 >= 3.0.5, PHP 4, PHP 5)

ocistatementtype -- Return the type of an OCI statement

Description

string ocistatementtype ( resource stmt )

ocistatementtype() returns one of the following values:

  1. SELECT

  2. UPDATE

  3. DELETE

  4. INSERT

  5. CREATE

  6. DROP

  7. ALTER

  8. BEGIN

  9. DECLARE

  10. UNKNOWN

Przykład 1. ocistatementtype() examples

<?php
    $conn
= OCILogon("scott", "tiger");
    
$sql  = "delete from emp where deptno = 10";
   
    
$stmt = OCIParse($conn, $sql);
    if (
OCIStatementType($stmt) == "DELETE") {
        die(
"You are not allowed to delete from this table<br />");
    }
   
    
OCILogoff($conn);
?>

Notatka: This function was renamed to oci_statement_type() after PHP >= 5.0.0. For downward compatibility ocistatementtype() can also be used. This is deprecated, however.

| | | |
Copyright © 2006-2013 egrafik.pl | Kontakt | Reklama | Projekty domów
jocker