Beruflich Dokumente
Kultur Dokumente
Step 4 -To retrieve color names through a PL/SQL block create a variable of Color_tab_t
type. Then fetch the nested table column into that variable for that row. Then
through loop show each color with the help of the variable.
To see all the colors available to Maruti car -DECLARE
colorlist Color_tab_t;
BEGIN
SELECT colors INTO colorlist FROM cars
WHERE name = 'Maruti';
FOR i IN 1..colorlist.COUNT
LOOP
dbms_output.put_line( colorlist(i) );
END LOOP;
END;