您可以使用in子句在用户数据所在的表空间上创建一个索引,或者在其他表空间上创建索引。
You can use the in clause to create an index in the same table space where user data resides, or in a different table space.
如清单1所示,使用for子句来指定一组笛卡尔元组,表达式的其余部分将对该元组求值。
You use the for clauses to specify a set of Cartesian tuples on which the rest of the expression will be evaluated, shown in Listing 1.
下面的例子演示了在触发器中使用WHEN 子句。
The following example demonstrates the use of the WHEN clause in the trigger.
xmlagg函数使用ORDERBY子句对组内元素进行排序。
XMLAGG functions use the ORDER BY clause to sort the elements within the group.
函数返回类型的数据类型可以直接指定,或使用references子句指定。
The data type for the function return type can be specified directly or using the REFERENCES clause.
如果已经执行了验证,那么在触发器代码体中使用when子句跳过验证过程。
If so, it skips the validation process by using the WHEN clause in the trigger body.
可以使用FROM 子句为XML数据指定路径。
You can specify the path for XML data using the XML FROM clause.
在装载数据时它并不使用FOR update子句,所以行并不会被锁定。
It will not use a FOR UPDATE clause when loading the data, so the rows will not be locked.
如果使用标准的into子句,那么按选择的字段的次序填充行。
If you use the standard INTO clause, the row is filled in the order of the selected fields.
下一步是执行适当的SQL查询来构造可更新的游标,方法为根据先前的描述使用 FORUPDATE子句。
The next step is to execute the appropriate SQL query to construct your updateable cursor, which requires using the FOR UPDATE clause as described earlier.
还可以使用values子句填充变量p2和p3,如下例所示。
You can also populate the variables p2 and p3 using the VALUES clause, as shown in the following example.
该查询使用WHERE 子句来筛选weather.bylocation表的内容并检索指定邮政编码的天气预报。
The query uses a WHERE clause to filter the contents of the weather.bylocation table and retrieve a weather forecast for the specified zip code.
注意where子句中使用了参数标记。
在load期间可以使用XMLVALIDATE USING子句对XML数据进行验证。
XML data can be validated during load using the XMLVALIDATE USING clause.
看一下清单2中的示例,其中使用了多个for子句。
Take a look at the example in Listing 2, which USES more than one for clause.
在WHERE子句中避免使用“NOTIN”谓词。
where子句使用DB2的XMLExists函数限制查询所返回的数据。
The WHERE clause USES DB2's XMLExists function to restrict the data to be returned.
现在支持使用LIMIT和OFFSET 子句的新SQL语法。
New SQL syntax using the LIMIT and OFFSET clauses is now supported.
在应用服务器上程序嵌入的SQL可能使用SQL系统日期子句。
SQL embedded in programs on the application server might use the SQL system date clause.
还可在merge语句中using 子句的内部使用视图。
You can also use views inside the using clause of the merge statement.
声明部分包含声明语句,它们声明后续子句中使用的局部和全局变量。
The declaration clause contains declarative statements that declare local and global variables to be used in subsequent clauses.
当指定XDS选项时,可以使用DEFAULT,IGNORE和MAP子句。
While specifying the XDS option, DEFAULT, IGNORE and MAP clauses can be used.
到目前为止,本文中的所有更新示例都使用相同的 “copy”子句,即 copy $new := $INFO。
So far, all the update examples in this article have used the same "copy" clause, that is copy $new := $INFO.
在一个分析摘要函数(比如rank)的withinset子句外部使用nestedset函数的报告将生成以下错误。
A report using the function nestedSet outside the within set clause of an analytic summary function (such as rank) produces the following error.
使用UNIONALL子句,可将当前的迭代SELECT语句的结果与初始 SELECT 语句的结果以及之前的迭代返回的所有结果合并在一起。
The result of the current iterative select statement is merged with the result of the initial select statement and all results returned by the previous iterations using a UNION ALL clause.
如果语句不成功,将使用return语句和returns子句捕捉SQLERRNUM的值并返回给调用者。
If the statement is not successful, the value of SQLERRNUM is captured and returned to the caller using the return statement and the RETURNS clause.
对于DB2V 9.5,这种行为是默认的,也可以使用IGNOREINVALIDVALUES子句显式地指定这种行为。
This is the default behaviour for DB2 V 9.5 and can also be specified explicitly using the IGNORE INVALID VALUES clause.
with 子句是我们使用除了set之外的其他项来定制图的第一个例子。
The with clause is the first example where we used something other than a set to customize a graph.
我还描述了使用CREATETABLE的PARTITIONBY子句来创建分区表的两种方法。
I also described two ways to use the partition BY clause of the create table statement to create partitioned tables.
在SQL查询的select子句中,常常使用XMLQUERY根据结果集的给定行中的XML文档提取或构造xml值。
XMLQUERY is often used in the SELECT clause of an SQL query to extract or construct XML values based on the XML document in a given row of the result set.
应用推荐