PHP的oci8扩展详解
$c = oci_connect("hr", "hr", "//localhost/XE");if (!$c) {
$e = oci_error();// no resource passed
var_dump($e);
}
$stid = oci_parse($c, "select city from locations");
if (!$stid) {
$e = oci_error($c); // connection resource passed
var_dump($e);
}
$rc = oci_execute($stid, OCI_DEFAULT);
if (!$rc) {
$e = oci_error($stid);// statement resource passed
var_dump($e);
}
$rc = oci_fetch_all($stid, $results);
if (!$rc) {
$e = oci_error($stid);// statement resource passed
var_dump($e);
}
页:
[1]