好奇您是否可以准备一个语句,绑定它,然后预览生成的SQL,如下所示
函数是占位符):
// Glorious declaration of a non-specific query
$statment = oci_parse($handle, "SELECT x FROM y WHERE variable = :value");
// Bind up some variables
oci_bind_by_name($statement, ':value', $value);
...
// Location of interest
oci_preview_sql($statement); // ? is there some method like this?
// Execute it
oci_execute($statement, OCI_DEFAULT);