what do PDO::PARAM_STMT behavior?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello php-db-help,
  
   for the ref cursor, the oci function use 
   $cur=oci_new_cursor($conn);
   oci_bind_by_name($stmt,':somename',$cur,-1,OCI_B_CURSOR);
   oci_execute($stmt);
   oci_execute($cur);// have to execute

   in java mode, the cursor, is return as a ResultSet
   ResultSet cur=(ResultSet) stmt.getObject(someIndex);
   //not have to execute?

   the pdo has the const, what will it do?

   1  like $pdo->query();//not have to execute;
   2  like $pdo->prepare();//have to execute;
   3  or other way? a new cursor/result set class?

i have to do an adapter between oci function, such as oic_connect, 
to pdo mode, like new MyPDO('oci:dbname=dbname','user','password');

   when the pdo for oracle good for use, i want do replace the driver.
so need to know this.
   
   help me, thanks
  
nick.yim
nick.yim@xxxxxxxxxx
2006-11-04

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux