I am having a problem with VARRAY
in ORACLE
:
When I try to select a varray type in a table, the output in SQL Developer shows
VARRAY_TYPE
__________________________________________________
USERNAME.VARRYA_TYPE('TYPE1','TYPE2','TYPE3')
Can anyone point me out the way to get rid of the "USERNAME.VARRAY_TYPE()
" and extract the result to be just
VARRAY_TYPE
__________________________________________________
'TYPE1','TYPE2','TYPE3'
My varray and table example are given here for your references:
CREATE TYPE varray_TYPE AS VARRAY(3) OF CHAR(20)
/
CREATE TYPE table_TYPE AS OBJECT (
tableID number (6),
varray_var GENRE_TYPE
)
/
CREATE TABLE table1 as table_type(
tableID PRIMARY KEY
)
/
AND MY SELECT QUERY IS:
SELECT VARRAY_VAR AS VARRY_TYPE
FROM TABLE table1
/
THANKS IN ADVANCE!