Programming/Oracle2015. 11. 3. 13:42


오라클에서 배열사용하는 법


DECLARE


TYPE array_type IS TABLE OF VARCHAR2(10) INDEX BY BINARY_INTEGER;

arr_id array_type;


     --TYPE array_type IS TABLE OF TABLE_NAME.COLUMN1%TYPE INDEX BY BINARY_INTEGER;


BEGIN


arr_id(0) := 123 ;

arr_id(1) := 456 ;


DBMS_OUTPUT.PUT_LINE(arr_id(0) ||'/'|| arr_id(1));


END;

Posted by jvvj