将专用寄存器 CURRENT EXPLAIN SNAPSHOT 设置为 YES 以捕获动态 SQL 语句的快照。
Set the special register CURRENT EXPLAIN SNAPSHOT to YES to capture the snapshot for dynamic SQL statements.
现在让我们来看一下如何执行在编写应用程序时还不确定并且具有参数标记(即占位符)的 SQL 语句 —— 即真正的动态 SQL 语句。
Now let's see how to execute an SQL statement which is unknown at the time the application is written and has parameter markers or placeholders; that is, a truly dynamic SQL statement.
SQL 语句分布图显示数据库的动态和静态 SQL 语句的分布情况。
SQL statement distribution shows the distribution of dynamic and static SQL statements for a database.
应用推荐