SQL>
SQL> CREATE OR REPLACE TYPE numberVarryType AS VARRAY(10)OF NUMBER(10);
2 /
Type created.
SQL>
SQL> CREATE TABLE address_list (
2 list_id VARCHAR2(6)PRIMARY KEY,
3 direct_addresses numberVarryType
4 );
Table created.
SQL>
SQL> DECLARE
2 v_add_varray numberVarryType :=numberVarryType(1011,1012,1013);
3 BEGIN
4 UPDATE address_list
5 SET direct_addresses =v_add_varray
6 WHERE list_id ='OFF102';
7 END;
8 /
PL/SQL procedure successfully completed.
SQL>
SQL> drop table address_list;
Table dropped.
SQL>
SQL>
SQL>
|