How can I see in the debug window (PL/SQL Developer, version 10.0.5.1710) to look up information on an array of data in a collection: the nesting hierarchy, elements with data types and their values without listing all its elements separately?
DECLARE
TYPE T_userinfo IS RECORD(
surname VARCHAR2(8),
name VARCHAR2(6),
sex VARCHAR2(6)
);
TYPE T_group_tab IS TABLE OF T_userinfo INDEX BY VARCHAR2(6);
TYPE T_class_tab IS TABLE OF T_group_tab INDEX BY PLS_INTEGER;
team_tab T_class_tab;
BEGIN
team_tab(0)('group1').surname := 'Bradley';
team_tab(0)('group1').name := 'Brian';
team_tab(0)('group1').sex := 'male';
team_tab(1)('group2').surname := 'Johnston';
team_tab(1)('group2').name := 'Hilary';
team_tab(1)('group2').sex := 'female';
END;
I want to see in the debug window something like that:
0 =>
'group1' =>
'surname' => VARCHAR2 'Bradley'
'name' => VARCHAR2 'Brian'
'sex' => VARCHAR2 'male'
1 =>
'group2' =>
'surname' => VARCHAR2 'Johnston'
'name' => VARCHAR2 'Hilary'
'sex' => VARCHAR2 'female'