Hi Experts,
I want to display all the elements of a %ROWTYPE type.How can i achieve that.
I have written one sample code.
DECLARE
TYPE dept_info IS record dept%ROWTYPE;
temp_dept_info dept_info;
BEGIN
SELECT *
BULK COLLECT
INTO temp_dept_info
FROM DEPT;
FOR i IN 1 .. temp_dept_info.LAST LOOP
DBMS_OUTPUT.PUT_LINE(temp_dept_info(i));
END LOOP;
END;
But it is showing error.
Here i am trying to display values of each column of dept Table.
Please guide me how to do this?
Waiting for your quick response.
Thanks,
Dilip