1

カーソルを実行しようとしています。それは正常に動作しますが、dbがスペースを含む日付を返す場合(つまり10.10.2013 9:30)、最初の部分のみを取得しています(最初のスペースまで、つまり10.10.2013.結果全体を取得したい.

コードスニペットは次のとおりです。

function exec_cur($conn, $mycursor, $outrefc)
{
        $ret = @ociexecute($mycursor); // Execute function
        $ret = @ociexecute($outrefc); // Execute cursor

        $i=0;
        while ($row = oci_fetch_array($outrefc)) {
                foreach (array_keys($row) as $key)
                {
                        $row[$key]= str_replace(',', '.', "$row[$key]")  ;
                        $res[$i]["o_".strtolower ($key)] = "$row[$key]";
                }
                $i++;
        }
        oci_free_statement($outrefc);
        oci_free_statement($mycursor);
        @OCILogoff($conn);

        return $res;

}
4

0 に答える 0