Rapide Advanced Adulte
   oci_num_rows   
Resultatsoci_num_rows   |   Contact

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.OCI-Collection->append
.OCI-Collection->assign
.OCI-Collection->assignElem
.OCI-Collection->free
.OCI-Collection->getElem
.OCI-Collection->max
.OCI-Collection->size
.OCI-Collection->trim
.OCI-Lob->append
.OCI-Lob->close
.OCI-Lob->eof
.OCI-Lob->erase
.OCI-Lob->export
.OCI-Lob->flush
.OCI-Lob->free
.OCI-Lob->getBuffering
.OCI-Lob->import
.OCI-Lob->load
.OCI-Lob->read
.OCI-Lob->rewind
.OCI-Lob->save
.OCI-Lob->saveFile
.oci lob import()
.OCI-Lob->seek
.OCI-Lob->setBuffering
.OCI-Lob->size
.OCI-Lob->tell
.OCI-Lob->truncate
.OCI-Lob->write
.OCI-Lob->writeTemporary
.OCI-Lob->writeToFile
.oci lob export()
.oci bind array by name
.oci bind by name
.oci cancel
.oci close
.oci commit
.oci connect
.oci define by name
.oci error
.oci execute
.oci fetch all
.oci fetch array
.oci fetch assoc
.oci fetch object
.oci fetch row
.oci fetch
.oci field is null
.oci field name
.oci field precision
.oci field scale
.oci field size
.oci field type raw
.oci field type
.oci free statement
.oci internal debug
.oci lob copy
.oci lob is equal
.oci new collection
.oci new connect
.oci new cursor
.oci new descriptor
.oci num fields
.oci num rows
.oci parse
.oci password change
.oci pconnect
.oci result
.oci rollback
.oci server version
.oci set prefetch
.oci statement type
.ocibindbyname
.oci bind by name()
.ocicancel
.oci cancel()
.ocicloselob
.ocicollappend
.ocicollassign
.ocicollassignelem
.ocicollgetelem
.ocicollmax
.ocicollsize
.ocicolltrim
.ocicolumnisnull
.oci field is null()
.ocicolumnname
.oci field name()
.ocicolumnprecision
.oci field precision()
.ocicolumnscale
.oci field scale()
.ocicolumnsize
.oci field size()
.ocicolumntype
.oci field type()
.ocicolumntyperaw
.oci field type raw()
.ocicommit
.oci commit()
.ocidefinebyname
.oci define by name()
.ocierror
.oci error()
.ociexecute
.oci execute()
.ocifetch
.oci fetch()
.ocifetchinto
.ocifetchstatement
.oci fetch all()
.ocifreecollection
.ocifreecursor
.oci free statement()
.ocifreedesc
.ocifreestatement
.ociinternaldebug
.oci internal debug()
.ociloadlob
.ocilogoff
.oci close()
.ocilogon
.oci connect()
.ocinewcollection
.oci new collection()
.ocinewcursor
.oci new cursor()
.ocinewdescriptor
.oci new descriptor()
.ocinlogon
.oci new connect()
.ocinumcols
.oci num fields()
.ociparse
.oci parse()
.ociplogon
.oci pconnect()
.ociresult
.oci result()
.ocirollback
.oci rollback()
.ocirowcount
.oci num rows()
.ocisavelob
.ocisavelobfile
.ociserverversion
.oci server version()
.ocisetprefetch
.oci set prefetch()
.ocistatementtype
.oci statement type()
.ociwritelobtofile
.ociwritetemporarylob
 
   

  oci_num_rows  


oci_num_rows

(PHP 5)

oci_num_rows --  Retourne le nombre de lignes affectées durant la dernière commande Oracle

Description

int oci_num_rows ( resource stmt )

oci_num_rows() retourne le nombre de lignes affectées durant la dernière commande Oracle stmt.

Note : Cette fonction ne retourne pas le nombre de lignes sélectionnées. Pour les commandes de type SELECT, cette fonction va retourner le nombre de ligne qui ont été lues dans le buffer avec oci_fetch*().

Exemple 1. Exemple avec oci_num_rows()

<?php
    
echo "<pre>";
    
$conn = oci_connect("scott", "tiger");
     
    
$stmt = oci_parse($conn, "create table emp2 as select * from emp");
    
oci_execute($stmt);
    echo
oci_num_rows($stmt) . " rows inserted.<br />";
    
oci_free_statement($stmt);
    
    
$stmt = oci_parse($conn, "delete from emp2");
    
oci_execute($stmt, OCI_DEFAULT);
    echo
oci_num_rows($stmt) . " rows deleted.<br />";
    
oci_commit($conn);
    
oci_free_statement($stmt);
    
    
$stmt = oci_parse($conn, "drop table emp2");
    
oci_execute($stmt);
    
oci_free_statement($stmt);
    
    
oci_close($conn);
    echo
"</pre>";
?>

oci_num_rows() retourne FALSE en cas d'erreur.

Note : Dans les versions de PHP antérieures à la version 5.0.0, vous devez utiliser la fonction ocirowcount(). Cet ancien nom est toujours utilisable : un alias a été fait vers la fonction oci_num_rows(), pour assurer la compatibilité ascendante. Toutefois, il est recommandé de ne plus l'utiliser.


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur