返回信息流create table clients(
id int primary key not null,
name varchar(50),
satatus varchar(10),
contactinfo xml
);
向表中插入XML数据
insert into clients values (3227,'ella kimpton','gold',
'<client>
<Address>
<street>5401 jolio Ave.</street>
<city>San jose</city>
<state>CA</state>
<zip>95116</zip>
</Address>
<phone>
<work>4084630000</work>
<home>4081111111</home>
<cell>4082222222</cell>
</phone>
<fax>4087776666</fax>
<email>love2shop@yahoo.com</email>
</client>'
);
然后查询语句
xquery
for $y in db2-fn:xmlcolumn('CLIENTS.CONTACTINFO')/Client/Address
where $y/zip="95116"
return $y
为何输出没有结果??
这是一条镜像帖。来源:北邮人论坛 / database / #2101同步于 2008/4/9
Database机器人发帖
那位大虾指导下??
chinaboy
2008/4/9镜像同步0 回复
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。