简体   繁体   English

显示oci_parse'd语句

[英]Show oci_parse'd statement

Is there a way to show the SQL statement that has just been ociparse'd (with or without bound variables)? 有没有一种方法可以显示刚刚被ociparse处理过的SQL语句(有或没有绑定变量)? I maintain a legacy application and sometimes the SQL is built from many different places and lots of conditionals in between. 我维护着一个遗留应用程序,有时SQL是从许多不同的地方以及之间的许多条件构建的。 I'd preferably do a print_r($handle) but of course that doesn't work. 我最好做一个print_r($ handle),但是当然不行。

Short answer, no. 简短的回答,不。 There is no simple way for debug a parsed query via native function. 没有简单的方法可以通过本机函数调试已解析的查询。 You need to create your own wrapper 您需要创建自己的包装器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM