查询表达式的转换通过一系列例子示范如下。正式的转换规则的描述在后面部分。
The translation of query expressions is demonstrated through a series of examples in the following. A formal description of the translation rules is provided in a later section.
在从数据库读取XML文档并传递给应用程序的过程中,可以在查询中使用转换表达式修改XML文档。
A transform expression can be used in a query to modify an XML document as it is read from the database and passed to the application.
初始查询中的XMLEXISTS谓词被转换为一个复杂表达式,可以通过编号Q 1引用。
The XMLEXISTS predicate in the original query got converted into a complex expression that can be referred to using the number Q1.
但是,转换表达式也可以出现在更新2这样的查询中。
However, they could just as well appear in queries as shown in Update 2.
本文后面的示例还说明查询中的转换表达式可以从文档中删除某些元素或属性,或者修改元素的名称。
Later examples in this article show that TRANSFROM expressions in queries can also be useful to remove certain elements or attributes from the document, or to expose elements under a different name.
将属性和度量转换为SQL表达式,这些表达式用来构造对多维数据集模型进行查询的sql语句。
Convert the attributes and measures into SQL expressions, which are used to construct the SQL statement to query the cube model.
查询表达式基于编译器的模式转换,除了相关查询表达式需要的模式之外,你不必实现其它的;
Query expressions are based on compiler translations of patterns; you don't need to implement any more of the pattern than the relevant query expression requires
查询表达式通过依次重复应用下述转换进行处理。每个转换被应用,直到不出现指定的模式为止。
A query expression is processed by repeatedly applying the following translations in order. Each translation is applied until there are no more occurrences of the specified pattern.
您使用相同的基本查询表达式模式来查询和转换SQL数据库、A DO。
You use the same basic query expression patterns to query and transform data in SQL databases, ADO.
您使用相同的基本查询表达式模式来查询和转换SQL数据库、A DO。
You use the same basic query expression patterns to query and transform data in SQL databases, ADO.
应用推荐