在执行该过程后创建新的表函数。
The new table functions are created after the procedure executes. To list the output columns for the table functions, execute the following statements
创建返回多个值的表函数也不太困难。
Creating a table function that returns multiple values isn't much more difficult.
表函数的调用方法如下。
报告相对于基线数据的差值的包装器表函数。
Wrapper table functions that report deltas relative to the baseline data.
关于样式表函数请参阅本系列的第1部分。
See Part 1 of this series for more about stylesheet functions.
为了从db2表函数创建集群描述查询主题,您需要。
To create the cluster description query subject from the DB2 table function.
如果不这样做,脚本就无法定义差值表函数要使用的CGTT。
If you do not, the script will be unable to define the CGTTs used by the delta table functions.
清单3显示了用于发现连接到DB2的用户数的表函数。
The table function to find the number of users connected to DB2 is shown in Listing 3.
例如,所有未涉及订购项的步骤都被封装到一个sql表函数中。
For example, all the steps not involving the order lines have been unified into one SQL table function.
函数可以返回单一值(对于标量函数)或多个值(对于表函数)。
The functions can be coded to return a single value (for scalar functions) or multiple values (for table functions).
首先,NEW_OL _ LOCAL表函数实际上一次只返回一行。
First, the NEW_OL _local table function really returns only one row at a time.
如果基线不存在,这个表函数与MON_GET _ TABLE等效。
If no baseline exists, this table function is equivalent to MON_GET_TABLE.
清单4定义一个包装MON_GET _table表函数的表函数。
Listing 4 defines a table function that wraps the MON_GET_TABLE table function.
sql表函数的使用使您可以将过程性逻辑放入到查询的from子句中。
The usage of SQL Table Functions allows you to push procedural logic into the FROM clause of a query.
清单20显示了如何调用MON_GET _ index表函数的样例。
Listing 20 shows a sample of how to call the MON_GET_INDEX table function.
就像其他的内建函数一样,表函数也可以在SQLselect语句中使用。
Just like any other built-in function, table functions can be used in a SQL SELECT statement.
这个包装器函数的输入值与底层监控表函数相同,所以它也能够筛选返回的数据。
The wrapper function takes as input the same values passed as input to the underlying monitoring table function, so it has the same capability to filter the data that is returned.
系统提供的这三个表函数可以为所有被监视的4种对象类型返回与健康有关的信息。
The three provided table functions can return health-related information for all four monitored object types. These functions are grouped into the following categories.
在图9中,您可以看到我正通过使用视图代替前一图中的表函数,调用相同类型的信息。
In figure 9 you can see that I'm calling the same kind of information by using a view instead of a table function in the previous figure.
另外,正如您后面将会看到的,NEW_OL _ LOCAL表函数实际上是写一个表。
Second, the NEW_OL _local table function, as you will see later, actually writes to a table.
与前面的事务一样,这里的大部分逻辑被封装到一个名为PAY_C_LAST的表函数中。
AS in the previous transactions, most of the logic is encapsulated into a table function named PAY_C_LAST .
TBSCAN(18)表示这个SQL表函数中的RETURN语句。
TBSCAN(18) represents the RETURN statement in the SQL Table function.
GENROW表函数会生成在IN 谓词的 <VALUELIST> 中所列的值。
The GENROW table function produces the values listed in the <VALUE LIST> of the IN predicate.
注意,在上面的示例中,使用表函数提取感兴趣的表的数据比搜索快照输出中的数据简单得多。
Notice in the above example how much simpler it is to extract just the data for the table of interest using the table function rather than having to search for the data in the snapshot output.
不能检查样式表函数的可用性,但是可以检查处理程序中内置的厂商编写的扩展函数。
Can't check the availability of stylesheet functions, but you can check for vendor-written extension functions built into the processor?
表函数允许您对非实际表(不是实际上的表)中的数据有效地使用关系操作和SQL。
Table functions enable you to efficiently use relational operations and the power of SQL on data that is not in an actual table.
这个子句允许sql表函数包含UPDATE、DELETE、INSERT和merge语句。
This clause allows an SQL Table function to contain UPDATE, DELETE, INSERT and MERGE statements.
就像在NEW_ORDER事务中一样,所有的步骤被收集到一个sql表函数中,以节省代码路径。
As in the NEW_ORDER transaction, all steps have been collected into one SQL table function to save code path.
XMLTABLE是一个sql表函数,它对一个XML文档执行XQuery表达式并返回一个表。
XMLTABLE is a SQL table function that returns a table from the evaluation of XQuery expressions on an XML document.
在清单9所示的查询访问计划中,要注意表employee和一个表函数GENROW间的一个连接。
In the query access plan shown in Listing 9, notice a join between the table EMPLOYEE and a table function, GENROW.
应用推荐