Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bulk collect using rowtype

GopalaKrishnaJul 9 2013 — edited Jul 9 2013

Hi,

I am using oracle 11g version.

How can I access the data in the table variable V_emp?

set serveroutput on size unlimited

declare

type emp_type is table of emp%rowtype

index by binary_integer;

v_empĀ  emp_type;

begin

select emp.* bulk collect into v_emp

from emp;

for i in 1..v_emp.count

loop

dbms_output.put_line(How can I display all the data in the table variable v_emp??);

end loop;

end;

/

Thanks

This post has been answered by unknown-7404 on Jul 9 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2013
Added on Jul 9 2013
5 comments
1,710 views