donglu9978 2015-05-28 12:45
浏览 41

通过PHP查询Oracle中的存储过程 - 不工作

I simply don't get it.

I can connect fine to the Oracle database, but my account can only execute stored procedures. So I try to use one.

echo "before";

$nrows = '';
$stid = oci_parse($conn, 'begin :r := AR_INTEGRATIONS.F_SRVCIMPROVE_ACCNT_INCS(:p); end');
oci_bind_by_name($stid, ':p', '');
oci_bind_by_name($stid, ':r', $nrows);

if(!oci_execute($stid)){
 $e = oci_error();
 print htmlentities($e['message']);
 exit;
}



echo "<br/>After";

When I load this on my browser, it's blank. But when I comment out the oci_bind_by_name() lines, it displays before but not after.

This is the first time I'm using PHP to connect to Oracle and execute queries. It's very different from just using MySQL.

What's going on?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
    • ¥20 西门子S7-Graph,S7-300,梯形图
    • ¥50 用易语言http 访问不了网页
    • ¥50 safari浏览器fetch提交数据后数据丢失问题
    • ¥15 matlab不知道怎么改,求解答!!
    • ¥15 永磁直线电机的电流环pi调不出来
    • ¥15 用stata实现聚类的代码
    • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
    • ¥20 docker里部署springboot项目,访问不到扬声器
    • ¥15 netty整合springboot之后自动重连失效