create type ty_a is object (b VARCHAR2(10));
/
CREATE TYPE TYT_a IS TABLE OF TY_A;
/
CREATE TYPE TYT_VARCHAR2 IS TABLE OF VARCHAR2(10);
/
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
Connected as testuser@localhost:1531/oracledb
SQL> set serveroutput on
SQL>
SQL> declare
2 l_ty_a ty_a;
3 L_TYT_A TYT_a:=TYT_a();
4 L_TYT_VARCHAR2 TYT_VARCHAR2:=TYT_VARCHAR2();
5 L INT;
6 begin
7 l_ty_a:=ty_a(1);
8 L_TYT_A.EXTEND;
9 L_TYT_A(1):=l_ty_a;
10 L_TYT_VARCHAR2:=TYT_VARCHAR2('1');
11 if L_TYT_A(1).B not member of L_TYT_VARCHAR2 then
12 dbms_output.put_line('Y');
13 else
14 dbms_output.put_line('N');
15 end if;
16 L:=CASE WHEN L_TYT_A(1).B not member of L_TYT_VARCHAR2 THEN 1 END;
17 end;
18 /
N
PL/SQL procedure successfully completed
SQL>