Services webmasters
Partenaires
Jeux concours gratuits
 
ocisetprefetch
<<<
ocistatementtype ociwritelobtofile
>>>

7.72 Oracle 8
7 Index des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Types de ressources
Constantes prédefinies
Exemples
ocibindbyname
ocicancel
ocicloselob
ocicollappend
ocicollassign
ocicollassignelem
ocicollgetelem
ocicollmax
ocicollsize
ocicolltrim
ocicolumnisnull
ocicolumname
ocicolumnprecision
ocicolumnscale
ocicolumnsize
ocicolumntype
ocicolumntyperaw
ocicommit
ocidefinebyname
ocierror
ociexecute
ocifetch
ocifetchinto
ocifetchstatement
ocifreecollection
ocifreecursor
ocifreedesc
ocifreestatement
ociinternaldebug
ociloadlob
ocilogoff
ocilogon
ocinewcollection
ocinewcursor
ocinewdescriptor
ocinlogon
ocinumcols
ociparse
ociplogon
ociresult
ocirollback
ocirowcount
ocisavelob
ocisavelobfile
ociserverversion
ocisetprefetch
->ocistatementtype
ociwritelobtofile
ociwritetemporarylob

7.72.54 ocistatementtype()Retourne le type de commande OCI

[ Exemples avec ocistatementtype ]   PHP 3>= 3.0.5, PHP 4

string  ocistatementtype ( resource   stmt )

ocistatementtype retourne une des valeurs suivantes :

  1. SELECT
  2. UPDATE
  3. DELETE
  4. INSERT
  5. CREATE
  6. DROP
  7. ALTER
  8. BEGIN
  9. DECLARE
  10. UNKNOWN

Exemple avec ocistatementtype

<?php
    
print "<HTML><PRE>";
    
$conn = OCILogon("scott","tiger");
    
$sql  = "delete from emp where deptno = 10";
   
    
$stmt = OCIParse($conn,$sql);
    if (
OCIStatementType($stmt) == "DELETE" ) {
        die
"Nous n'êtes pas autorisés à effacer des lignes dans cette table<BR>";
    }
   
    
OCILogoff($conn);
    print
"</PRE></HTML>";
?>

<< ocistatementtype >>
ocisetprefetch Oracle 8 ociwritelobtofile
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -