用php执行oracle存储过程示例
<?
//在oracle中执行存储过程示例
//供大家参考
$gConn=ocilogon("test","test");
/* OCIDefineByPos example thies@digicol.de (980219) */
//discrate与nEcode是out parameter,其余均是 in parameter.
//存储过程get_discrate存放于package ebiz_pg中。
$stmt = OCIParse($gConn,"BEGIN ebiz_pg.get_discrate(:discrate,505,402,1,56,:nEcode);END;");
OCIBindByName($stmt,":discrate",&$discrate,32);
OCIBindByName($stmt,":nEcode",&$nEcode,32);
OCIExecute($stmt);
echo($discrate);
echo("<br>");
echo($nEcode);
//echo($discrate*0.09);
OCIFreeStatement($stmt);
OCILogoff($gConn);
?>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号