After we compose our SQL statement, all the other steps are the same as for any dynamic statement with parameter markers.
在构造sql语句之后,剩下的步骤就与其他具有参数标记的动态语句完全相同了。
Validate data: statement hooks let you validate parameter data before statement execution, providing the opportunity to do constraint check and data validation at the application level.
验证数据:通过语句钩子可以在执行语句之前验证参数数据,从而为应用程序级的约束检查和数据验证提供机会。
In some cases, the access path does not perform well at runtime if the statement contains host variables, parameter markers, or special registers.
某些情况下,如果语句包含主机变量、参数标记或特殊寄存器那么访问路径在运行时的性能不会很好。
We need to add one thing to this file to extend the policy definition for class instance-level authorization: an optional relationship parameter associated with a permission statement.
我们需要向这个文件添加一个东西为类实例级授权扩展策略定义:一个与许可权语句相关的可选关系参数。
As we've discussed in this article, the DB2 optimizer may choose a sub-optimal access plan when there are host variables or parameter markers in the SQL statement.
正如我们在本文讨论的,如果sql语句中存在主机变量或参数标记,那么DB 2优化器可能会选择一个次优化的存取计划。
There can be, but there is not necessarily, a one-to-one mapping of parameter markers in the SQL statement to declared parameters in the annotated method.
sql语句中的参数占位符与带注释的方法中声明的参数之间可能存在一对一的映射,但是也不一定如此。
For batch updates, a collection parameter is used vertically to execute an SQL statement more than once, with different parameter values each time.
对于批量更新,需要使用一个集合参数多次执行一条sql语句,每次执行时使用不同的参数值。
The statement can have multiple parameter markers ('? ').
语句可以有多个参数标记(' ? ')。
The parameter object will be used to set input values in an UPDATE statement, or WHERE clause values in a query (etc.).
这个参数对象将用于设置update语句中的输入值,或者用于设置某一查询中的where子句的值(等等)。
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 语句。
Use parameter markers to prepare an SQL statement once, and then reuse it many times.
只需在sql语句中使用一次参数标记,然后就可以多次重用。
The INSERT statement is prepared as usual, and its four parameter markers are set.
insert语句像平常一样准备好了,它的四个参数标志符也设置好了。
The SET EXPLAIN statement now supports an optional parameter to override the default name and location of the output file.
SETexplain语句现在支持一个可选的参数,用于覆盖输出文件的默认名称和位置。
To enable access plan reuse, rewrite the SQL statement using a parameter marker, as shown in Listing 3.
要实现访问计划重用,使用一个参数标记重写SQL语句,如 清单3 所示。
The? (question mark) literal in the statement string is a parameter marker that represents the variable in which the result is returned.
语句字符串中的?(问号)是一个参数标识,代表用来返回结果的变量。
The parameter is passed to these functions from the SQL statement using the PASSING clause of these functions.
利用这些函数的PASSING 子句将参数从SQL语句传递给这些函数。
The current value of the parameter is bound to the prepared statement at [3].
参数的当前值在[3]中绑定到准备好的语句。
A parameterized SQL statement contains variables, also known as parameters (or parameter markers).
参数化sql语句包含了变量,也称作参数(或参数标记)。
Knowing the values of these parameter markers involved in the SQL statement for those applications whose statements are part of the deadlock can greatly help in resolving these issues.
知道出现死锁的应用程序中的sql语句中涉及的参数标记的值可以大大有助于解决这些问题。
The customer profile data from the HTTP request is passed as a parameter to the update statement; no modifications are needed.
来自HTTP请求的客户个人数据作为参数传递给更新语句;不需要修改。
The statement concentrator looks for SQL statements that look exactly the same except for their parameter values.
语句集中器寻找除参数值之外完全相同的sql语句。
As a general rule, add a PatternParameterDelegate statement to the constructor of each parameter class of the composed pattern.
为复合模式的每个参数类的构造函数增加PatternParameterDelegate声明已成为一种普遍规律。
You can issue a simple SQL statement--one that contains no parameter markers for variable input--using the odbc_exec() function. The following script inserts new rows into the AUTHOR table
可以使用 odbc_exec()函数发出简单的SQL语句(没有包含用于变量输出的参数标志的语句)。
The sayHello() function takes one parameter, which it outputs to the console in the following println() statement.
sayHello()函数只有一个参数,它会使用println()语句将这个参数输出到控制台。
Although db2-fn: sqlquery allows embedding an SQL statement inside XQuery, currently it is not possible to have regular SQL-style parameter markers in the embedded SQL statement.
尽管db 2 - fn:sqlquery允许在XQuery内嵌入sql语句,但目前还不能在嵌入式sql语句中使用参数标记。
You can issue a simple SQL statement — one that contains no parameter markers for variable input — using the odbc_exec function. The following script inserts new rows into the AUTHOR table.
可以使用odbc_exec函数发出简单的sql语句—这种sql语句不含变量输入的参数标记。
Bind application variables to parameter markers used in a prepared statement.
将应用程序变量绑定到预备语句中的参数标记。
When using inline methods, you can invoke methods defined in the data interface and pass the SQL statement as a parameter in the invocation of a method.
当使用内联方法编程风格时,用户可以调用Data接口中定义的方法,将sql语句作为方法调用中的一个参数。
The SQL Maps framework will create a PreparedStatement instance, set any parameters using the provided parameter object, execute the statement, and build a result object from the ResultSet.
SQLMaps框架将创建一个PreparedStatement实例,使用所提供的参数对象设置所有参数、执行语句以及从ResultSet中构建一个结果对象。
The SQL statement has a parameter marker for CatalogId value.
sql语句有一个用于catalogid值的参数标志符。
应用推荐