SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

Oracle 8

ociDefineByName
ociBindByName
ociLogon
ociPLogon
ociNLogon
ociLogOff
ociexecute
ociCommit
ociRollback
ociNewDescriptor
ociRowCount
ociNumCols
ociResult
ociFetch
ociFetchInto
ociFetchStatement
ociColumnIsNULL
ociColumnName
ociColumnSize
ociColumnType
ociServerVersion
ociStatementType
ociNewCursor
ociFreeStatement
ociFreeCursor
ociFreeDesc
ociparse
ociError
ociinternaldebug
OCICancel
ocisetprefetch
OCIWriteLobToFile
OCISaveLobFile
OCISaveLob
OCILoadLob
OCIColumnScale
OCIColumnPrecision
OCIColumnTypeRaw
OCINewCollection
OCIFreeCollection
OCICollAssign
OCICollAssignElem
OCICollGetElem
OCICollMax
OCICollSize
OCICollTrim

6.68.22 ociStatementType

[ Exemples avec ociStatementType ]  

Description

string ocistatementtype(resource stmt )

ocistatementtype retourne une des valeurs suivantes :

  • "SELECT"

  • "UPDATE"

  • "DELETE"

  • "INSERT"

  • "CREATE"

  • "DROP"

  • "ALTER"

  • "BEGIN"

  • "DECLARE"

  • "UNKNOWN"

Exemples

<?php
    
print "<HTML><PRE>";
    
$conn ociLogon("scott","tiger");
    
$sql  "delete from emp where deptno = 10";
    
$stmt ociparse($conn,$sql);
    if ( 
ociStatementType($stmt) == "DELETE" ) {
        die 
"Vous n'etes pas autorisé à effacer dans cette table.<BR>";
    }
    
ociLogoff($conn);
    print 
"</PRE></HTML>";
?>


Chapitre précédentChapitre suivantAccueil nexen.net