subquery

subquery

 英

  • 网络子查询;活用子查询;千变万化的子查询

例句

Within the body of a subquery, it is often necessary to refer to the value of a column in the active row of the main query.

查询正文通常需要引用查询活动

A reference to columns or expressions in the main table(s) is called an outer reference and the subquery is said to be correlated.

表达引用称作外部引用并且这种查询相关

The EXISTS condition is TRUE if the subquery result contains at least one row, and FALSE if the subquery result does not contain any rows.

如果查询结果至少包含一行EXISTS条件TRUE如果查询结果一行包含条件FALSE

Multiple references to such columns in a subquery do not cause the functions to be evaluated multiple times.

查询这些多次引用不会使这些函数计算多次

Number of optimizations for a query that contains at least one subquery.

包含至少查询查询优化

Two types of queries can be used in the WHERE clause of an UPDATE statement: a scalar subquery and a table subquery.

查询可以用于UPDATE语句WHERE子句量子查询查询

The result of the scalar subquery first needs to be transferred to the federated server.

首先需要量子查询结果传送联邦服务器

The IN operator is one of four SQL operators that you can use with a table subquery.

IN操作符可以用于查询SQL操作符之一

If the subquery (which must have one column) returns one row, then the value of that row is compared to the expression.

如果查询必须含有返回一行表达式进行比较

Casts may be required if the columns of the initial subquery do not have the same domains as those of the recursive subquery.

如果初始查询递归查询具有不同可能需要进行转换

Any null values returned by subquery or expression that are compared to test_expression using IN or NOT IN return UNKNOWN.

subqueryexpression使用INNOTINtest_expression比较返回所有返回UNKNOWN

Is a constant, function, any combination of column names, constants, and functions connected by an operator or operators, or a subquery.

常量函数以及一个多个运算符连接常量函数任意组合或者查询

A subquery that references one or more columns from its containing SQL statement is called a correlated subquery.

如果一个查询引用包含查询语句一个多个字段查询称为相关性子查询

The SHIP3 operator contains the statement that shows the result of the scalar subquery being bound in as a host variable.

SHIP3操作符包含一个语句语句表明量子查询结果一个主机变量

The query above contains a correlated subquery, since the main query and the subquery are relaying on the same table, the employees table.

以上查询包含相关查询因为查询查询依靠同一employees

The last section also describes the ALL, EXISTS, and SOME or ANY predicates, which can be used to express conditions on subquery results.

最后描述ALLEXISTSSOMEANY谓词这些谓词用于表达查询结果条件

The main query does not contain a GROUP BY clause, and is not an aggregate query, or the subquery returns exactly one value.

查询包含GROUPBY子句并且不是汇总查询或者查询恰好返回一个

The number of times the subquery and its function is executed can vary with different access paths chosen by the optimizer.

查询及其函数执行次数优化器选择访问路径不同

The first is the unnesting of the subquery into a join between the employee and sales_order tables.

第一优化解除职员sales_order之间连接查询

This extension, specifying a join, can be used instead of a subquery in the WHERE clause to identify rows to be removed.

这个扩展指定联接WHERE子句取代查询标识删除

The expression can be a constant or a column name, and the list can be a set of constants or, more commonly, a subquery.

表达式可以一个常量一个列表可以常量通常查询

The database server automatically attempts to convert the values returned by the recursive subquery to match those of the initial query.

数据库服务器自动尝试转换递归查询返回以便初始查询那些匹配

In this case, error 1242 means that the query execution failed because there was a problem in a subquery.

这里错误1242表示查询操作失败由于查询问题

The previous subquery in this statement cannot be evaluated independently of the outer query.

语句前面查询无法独立外部查询进行计算

Used with a subquery to test for the existence of rows returned by the subquery.

查询一起使用用于测试是否存在查询返回

The only change we made here was to get rid of the subquery in the original qeury.

这里我们惟一更改就是去掉原始查询查询

Specifies the name of the table, view, user-defined function, or subquery for the associated data column.

指定视图用户定义函数关联数据查询名称

EXISTS Use EXISTS in a WHERE clause to indicate that a subquery should return at least one row.

EXISTSWHERE子句使用EXISTS可以指示查询至少应该返回一行

The SELECT subquery in the INSERT statement can be used to add values into a table from one or more other tables or views.

INSERT语句SELECT查询用于一个多个视图添加另一个

Thus, a subquery can be thought of as a temporary table with statement scope.

因此一个查询可以认为语句范围临时视图)。

Specifies the conditions for the rows returned in the result set for a SELECT statement, query expression, or subquery.

指定SELECT语句查询表达查询结果集中返回条件

Explicit casts may also be required when the initial subquery selects values from different columns than the recursive subquery.

初始查询递归查询不同列中选择可能需要进行转换

ALL Use ALL in a WHERE clause to retrieve rows that satisfy the condition when compared to every row returned by the subquery.

ALLWHERE子句使用ALL可以检索查询返回每个进行比较满足条件

A subquery can appear anywhere an expression can be used, if it returns a single value.

任何可以使用表达式地方可以使用查询只要返回单个

The expression in the following table is one example of a calculated field that results from a subquery.

表达式便是使用查询生成计算字段一个示例

If your application requires a row filter to use a subsquery, ensure that the subquery only references lookup data that does not change.

如果应用程序要求筛选器使用查询确保查询引用发生更改查找数据

The expression cannot be a subquery or include an alias data type.

表达式不能查询不能包含别名数据类型

You do not have to try this approach with queries that contain the IN subquery clause.

包含IN查询子句查询不必使用方法

The subscription_list column is used for log scanning and the subquery is used for extraction and synchronization.

subscription_list用于日志扫描查询用于抽取同步

The subquery in this statement is absurdly simple, and completely unnecessary, but it does serve to illustrate a point.

这个查询非常简单并且完全没有必要但是说明一点