您的位置:首页 > 其它

删除嵌套表类型列的元素值

2016-02-15 16:23 211 查看
SQL> create or replace type nt is table of varchar2(20);

  2  /

Type created

SQL> create table tmp(id number,cont nt) nested table cont store as cont_tbl;

Table created

SQL> insert into tmp values(1,nt('a','b','c','d'));

1 row inserted

SQL> select * from table(select cont from tmp where id=1);

COLUMN_VALUE

--------------------

a

b

c

d

SQL> delete from table(select cont from tmp where id=1) where column_value='c';

1 row deleted

SQL> select * from table(select cont from tmp where id=1);

COLUMN_VALUE

--------------------

a

b

d

SQL> 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: