Forum und email

ora_do

(PHP 4, PHP 5 <= 5.0.5)

ora_do — Parse, Exec, Fetch

설명

resource ora_do ( resource $connection , string $query )

Parse and execute a statement, then fetch the first result row.

This function is a quick combination of ora_parse(), ora_exec() and ora_fetch().

매개변수

connection

A connection identifier, opened with ora_logon().

query

The SQL statement.

반환값

This function returns a cursor index or FALSE on failure. Details about the error can be retrieved using the ora_error() and ora_errorcode() functions.

변경 기록

버전 설명
5.1.0

oracle 확장은 권장되지 않습니다. oci8를 사용하십시오.

주의

There is no direct replacement for ora_do() in oci8. Instead, use a sequence of oci_parse(), oci_excute(), and one of the oci_fetch_*() functions.