在php中$conn "exec xxx(过程名)"不行!

解决方案 »

  1.   

    sql = "BEGIN: FETCHP_TXVP($id); END;"; 
    stat=OCIParse($con,$sql) or die("couldn't parse"); 
    OCIExecute($stat) or die("couldn't execute");
      

  2.   

    $sql = "exec procedure_naem;";
    $stmt = OCIParse($conn,$sql);
    $rs = OCIExecute($stmt);
    ......
    or$sql = "begin procedure_naem;end;";
    $stmt = OCIParse($conn,$sql);
    $rs = OCIExecute($stmt);注意exec porcudure_naem后要加分号