我创建了一个类型 create or replace type t_array as varray(99999) of varchar2(20),然后用这个类型建了一张表 create table test
(
rq date,
content t_array
)
往该表中插入数据 insert into test(‘2008-01-01’,t_array(‘richard’,‘jackay’,‘lily’));
提交数据后然后查询该表 : select t.rq, t.content from test t ,结果显示 :
‘2008-01-01’ <Collection>如果我想直接查看‘2008-01-01’对应的<Collection>内容, SQL语句应该怎样写呢
(
rq date,
content t_array
)
往该表中插入数据 insert into test(‘2008-01-01’,t_array(‘richard’,‘jackay’,‘lily’));
提交数据后然后查询该表 : select t.rq, t.content from test t ,结果显示 :
‘2008-01-01’ <Collection>如果我想直接查看‘2008-01-01’对应的<Collection>内容, SQL语句应该怎样写呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货