Adding elements in a Varray

200 Views Asked by At

I'm working on Oracle. If I have table in which one of the attributes is a Varray, like :

create type list_surname as Varray(20) of varchar2(15)
/

create table employes(name varchar2(15),
                      ls_pnm list_surname,
                      adrprivate Tadresse,
                      adrprof REF Tadresse);

Is it possible to add or modify elements containing in an existing ls_pnm ?

1

There are 1 best solutions below

3
On BEST ANSWER

Yes, you can.

UPDATE employees
  SET ls_pnm = list_surname('<list of values>')
 WHERE name ='<conditions>';