Assign to three elements of the table. Note that the key values are not sequential : Table of Varchar2 « PL SQL « Oracle PL / SQL
- Oracle PL / SQL
- PL SQL
- Table of Varchar2
Assign to three elements of the table. Note that the key values are not sequential
SQL>
SQL> DECLARE
2 TYPE CharacterTab IS TABLE OF VARCHAR2(10)
3 INDEX BY BINARY_INTEGER;
4 v_Characters CharacterTab;
5 BEGIN
6 v_Characters(0) := 'H';
7 v_Characters(-7) := 'S';
8 v_Characters(3) := 'S';
9 END;
10 /
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL>
Related examples in the same category