Curieux de savoir si oui ou non vous pouvez préparer une déclaration, bind, puis afficher un aperçu du SQL généré comme suit (la fonction oci_preview_sql est un porte-lieu):Quoi qu'il en soit pour prévisualiser les instructions SQL préparées en PHP en utilisant OCI?
// 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);