Rewards
Web
Images
Videos
Academic
Dict
Maps
More
Flights
My Bing
Notebook
FORXML
Sample Sentence
Definition:
All
All
Category:
All
All
,
Oral
Oral
,
Written
Written
,
Title
Title
,
Technical
Technical
Source:
All
All
,
Dictionary
Dictionary
,
Web
Web
Difficulty:
All
All
,
Easy
Easy
,
Middle
Middle
,
Hard
Hard
More sentence filters
Hide sentence filters
1.
Property
ordinarily
specifies
a
Transact
-
SQL statement
with
a
valid
FOR
XML
clause
.
属性
通常
指定
一个
包含
有效
FORXML
子句
的
Transact-SQL
语句
。
shǔ xìng
tōng cháng
zhǐ dìng
yī gè
bāo hán
yǒu xiào
FORXML
zǐ jù
de
Transact-SQL
yǔ jù
。
msdn2.microsoft.com
2.
If you
execute
a
query
that
includes
the FOR XML
clause
,
the FOR_XML_NULL_TREATMENT
option
determines
how
NULL
values
are
treated
.
执行
包含
FORXML
子句
的
查询
时
,
FOR_XML_NULL_TREATMENT
选项
决定
着
NULL
值
的
处理
方式
。
zhí xíng
bāo hán
FORXML
zǐ jù
de
chá xún
shí
,
FOR_XML_NULL_TREATMENT
xuǎn xiàng
jué dìng
zhe
NULL
zhí
de
chǔ lǐ
fāng shì
。
www.ianywhere.com
3.
Also
,
FOR XML
can
be
nested
to
generate
any
hierarchical
structure
.
同样
,
可以
嵌套
FORXML
以
生成
任意
层次
结构
。
tóng yàng
,
kě yǐ
qiàn tào
FORXML
yǐ
shēng chéng
rèn yì
céng cì
jié gòu
。
msdn2.microsoft.com
4.
For
examples
of
how
the FOR XML
clause
can be
used
,
see
FOR XML
examples
.
有关
如何
使用
FORXML
子句
的
示例
,
请参见
FORXML
示例
。
yǒu guān
rú hé
shǐ yòng
FORXML
zǐ jù
de
shì lì
,
qǐng cān jiàn
FORXML
shì lì
。
www.ianywhere.com
5.
To
retrieve
the
results
directly
,
first
use
the FOR XML
clause
of
the
SELECT
statement
.
若要
直接
检索
结果
,
首先
要
使用
SELECT
语句
的
FORXML
子句
。
ruò yào
zhí jiē
jiǎn suǒ
jié guǒ
,
shǒu xiān
yào
shǐ yòng
SELECT
yǔ jù
de
FORXML
zǐ jù
。
msdn2.microsoft.com
6.
If
the FOR
XML
query
result
includes
columns
of
xml
type
and
you
request
an
inline
XDR
schema
,
an
error
is
returned
.
如果
FORXML
查询
结果
包括
xml
类型
的
列
,
而
您
请求
内联
XDR
架构
,
将
返回
错误
。
rú guǒ
FORXML
chá xún
jié guǒ
bāo kuò
xml
lèi xíng
de
liè
,
ér
nín
qǐng qiú
nèi lián
XDR
jià gòu
,
jiāng
fǎn huí
cuò wù
。
technet.microsoft.com
7.
To
avoid
this
behavior
,
use
ExecuteXmlReader
or
BeginExecuteXmlReader to
read
FOR XML
queries
.
若要
避免
发生
此
行为
,
请
使用
ExecuteXmlReader
或
BeginExecuteXmlReader
读取
FORXML
查询
。
ruò yào
bì miǎn
fā shēng
cǐ
xíng wèi
,
qǐng
shǐ yòng
ExecuteXmlReader
huò
BeginExecuteXmlReader
dú qǔ
FORXML
chá xún
。
msdn2.microsoft.com
8.
In
FOR
XML
,
derived
table
mappings
in
AUTO
mode
are
treated
transparently
.
在
FORXML
中
,
使用
AUTO
模式
的
派生
表
映射
被
视为
是
透明
的
。
zài
FORXML
zhōng
,
shǐ yòng
AUTO
mó shì
de
pài shēng
biǎo
yìng shè
bèi
shì wéi
shì
tòu míng
de
。
technet.microsoft.com
9.
Controls
the
treatment
of
NULL
values
in
queries
that
use
the
FOR
XML
clause
.
控制
对
使用
FORXML
子句
的
查询
中
的
NULL
值
的
处理
。
kòng zhì
duì
shǐ yòng
FORXML
zǐ jù
de
chá xún
zhōng
de
NULL
zhí
de
chǔ lǐ
。
www.ianywhere.com
10.
As
described
in
Constructing
XML
Using
FOR
XML
,
the
PATH
mode
provides
a
simpler
way
to
mix
elements
and
attributes
.
如
使用
FORXML
构造
XML
中
所
述
,
PATH
模式
提供了
一种
较
简单
的
方法
来
混合
元素
和
属性
。
rú
shǐ yòng
FORXML
gòu zào
XML
zhōng
suǒ
shù
,
PATH
mó shì
tí gōng le
yī zhǒng
jiào
jiǎn dān
de
fāng fǎ
lái
hùn hé
yuán sù
hé
shǔ xìng
。
msdn2.microsoft.com
1
2
3