月亮词典
首页
查询
subqueries
子查询
常用释义
词性释义
子查询
例句
全部
The
previous
restrictions
apply
to
any
subqueries
in the FROM
clause
of
the
view
,
just
as
they
apply
to the
view
itself
.
上述
限制
适用
于
视图
的
FROM
子句
中
的
任何
子
查询
,
就
像
其
应用
于
视图
本身
一样
。
The uncorrelated
subqueries
do
not
rely
on the
main
query
for
information
;
hence
they
increase
the
power
and
flexibility
of
your
main
query
.
不
相关
的
子
查询
不
依靠
主
查询
来
获取
信息
;
因此
,
它们
增加
了
主
查询
的
能力
和
灵活性
。
Total
number
of
rows
processed
by the
SQL
statement
.
This
total
does not
include
rows
processed
by
subqueries
of the
SQL statement
.
sql
语句
处理
的
总行
数
。
这个
总行
数
不
包括
子
查询
处理
的
行
数
。
Correlated
subqueries
are
often
used
to
test
whether
relationships
exist
without
regard
to
cardinality
.
相关性
查询
通常
用于
测试
某
种
关系
是否
存在
,
而
不管
返回
记录集
的
大小
,
Note:
Transactions
containing
DML
statements
with
subqueries
should
use
serializable
isolation
to
guarantee
consistent
read
.
如果
事务
中
存在
使用
了
子
查询
的
DML
语句
,
应该
使用
串行化
隔离
来
保证
一致性
的
读取
。
Query
hints
can be
specified
only
in
the
top-level
query
,
not
in
subqueries
.
只能
在
顶级
查询
中
指定
查询
提示
,
不能
在
子
查询
指定
。
Subqueries
used
in
the
subquery
comparison
test
and
set
membership
test
both
return
data
values
from
the
subquery
table
.
在
子
查询
比较
测试
中
使用
的
子
查询
和
在
集合
成员资格
测试
中
使用
的
子
查询
都
从
子
查询
表
返回
数据
值
。
The
expressions
used
in
the
SET
clause
can
also
be
subqueries
that
return
only
one
value
.
SET
子句
中
使用
的
表达
式
还
可以
是
只
返回
一个
值
的
子
查询
。
Expressions
may
be
reordered
and
subqueries
may
be
transformed
to
improve
processing
efficiency
.
可以
对
表达
式
进行
重新
排序
并
对子
查询
进行
转换
以
提高
处理
效率
。
Similarly
,
subqueries
impose a
certain
order
of
join
execution
that
may
not
be
the most advantageous
.
类似
地
,
子
查询
会
使
连接
按照
一定
的
顺序
执行
,
而
这种
顺序
也许
不是
最优
的
。
This
tutorial
describes
subqueries
stated
as
conditions
in
the
WHERE
clause
,
which
are
useful
for
simpler
comparison
queries
.
本
教程
描述
在
WHERE
子句
中
作为
条件
的
子
查询
,
这些
子
查询
对于
较
简单
的
比较
查询
很
有用
。
The
subqueries
aggregate
the
sales
for
each
sales
person
within
the
UPDATE
statement
.
这些
子
查询
通过
UPDATE
聚合
了
语句
中
每个
销售
人员
的
销售
信息
。
The ORDER BY
clause
is not
valid
in
views
,
inline
functions
,
derived
tables
,
and
subqueries
,
unless
TOP
is
also
specified
.
除非
同时
指定
了
TOP
,
否则
ORDERBY
子句
在
视图
、
内联
函数
、
派生
表
和
子
查询
中
无效
。
These
access
operations
translate to
more
complex
joins
or
correlated
subqueries
in
the
equivalent
SQL
.
这些
访问
操作
会
转
换成
用
等效
的
SQL
表示
的
更为
复杂
的
联接
或
关联
子
查询
。
Removed
inaccurate
content
about
using
subqueries
in
scalar_expression
.
删除
了
有关
在
scalar_expression
中
使用
子
查询
的
不准确
内容
。
The
statement
must
not
contain
subqueries
,
outer
joins,
or
self-joins
.
语句
不能
包含
子
查询
、
外部
联接
或
自
联接
。
UNION
and
JOIN
within
a
FROM
clause
are
supported
within
views
and
in
derived
tables
and
subqueries
.
视图
、
派生
表
和
子
查询
中
均
支持
FROM
子句
内
的
UNION
和
JOIN
。
So
the
existence
test
applied
to the
following
two
subqueries
return
the
same
results
.
因此
,
应
用于
以下
两个
子
查询
的
存在
测试
返回
相同
的
结果
。
You
can
select
,
insert
,
and
update
the
XML
values
using
SQL
statements
with
embedded
XQuery
subqueries
.
使用
具有
嵌入
的
XQuery
子
查询
的
SQL语句
,
可以
选择
、
插入
并
更新
XML
值
。
Create
or
modify
joins
between
tables
,
views
,
user
-
defined
functions
,
or
subqueries
.
创建
或
修改
表
、
视图
、
用户
定义
函数
或
子
查询
间
的
联接
。
This
includes
SELECT
lists
of
subqueries
and
SELECT
lists inside
INSERT
statements
.
其中
包括
子
查询
的
SELECT
列表
和
INSERT
语句
中
的
SELECT
列表
。
Also
,
subqueries
,
aggregates
,
and
constant
expressions
are
not
allowed
in
the ORDER
BY
list
.
此外
,
在
ORDERBY
列表
中
也
不
允许
使用
子
查询
、
聚合
和
常量
表达
式
。
Next
,
several
examples
of
FROM
clause
and
select
-list
subqueries
are
presented
.
接着
,
我们
会
给
出
一些
关于
FROM
子句
和
select
列表
子
查询
的
例子
。
Aggregate
functions
and
subqueries
are
not
permitted
.
不
允许
聚合
函数
和
子
查询
。
This
example
uses
two
correlated
subqueries
to
find
the
names
of
employees
who have
sold
a
particular
product
.
此
示例
使用
两个
相关
子
查询
查找
售出
过
某
种
特定
产品
的
雇员
的
姓名
。
No
columns
,
variables
,
or
subqueries
appear
in
the
expression
.
表达式
中
没有
列
、
变量
、
或
子
查询
。
The
rewrite
phase
is
particularly
important
for
queries
that are
very
complex
,
such
as
queries
with
many
subqueries
or
joins
.
对于
非常
复杂
的
查询
,
例如
带有
很多
子
查询
或
连接
的
查询
,
重写
阶段
尤其
重要
。
Perhaps
the
most
important
use
for the
IN
keyword
is
in
nested
queries
,
also
called
subqueries
.
或许
IN
关键字
最
重要
的
用法
是
用
在
嵌套
查询
(
也
称作
子
查询
)
中
。
The
article
also
demonstrated
how
to
modify
a
more
complex
database
schema
by
using
embedded
subqueries
.
本文
还
演示
了
如何
通过
使用
嵌入式
子
查询
来
修改
比较
复杂
的
数据库
模式
。
You
can
use
the GROUP BY
clause
,
subqueries
,
and
joins
in
view
definitions
.
您
可以
在
视图
定义
中
使用
GROUPBY
子句
、
子
查询
和
连接
。
网络释义
子查询
三、
子查询
(
Subqueries
):子查询是在where子句中包含的查询语句,是由系列简单构成的复杂查询。问:谁与smith在同一部门 …
次查询
次查询
(
Subqueries
) 任何数目的次查询可以存在型态的任意层级中,而且次查询可以使用巢状结构,但是却不允许空的次查 …
更新时间:2025-05-01 06:59