i was not able to get the output for this below coding in PL/SQL ..please help me to solve this :    i have a table with 3 columns like eid,ename,salary.so i wanted to display all emplyes name with their salaries by using cursor and records.
if there is any mistakes in my code please let me know.. 

 DECLARE
    CURSOR emp_c IS select ename,salary from emp2;
    TYPE rec_2 IS RECORD 
    {
    v_name  varchar2(50);
    v_sal   number(10);
    };
    r1    rec_2;
    BEGIN
    open emp_c;
    loop
    fetch emp_c into r1;
    exit when emp_c%notfound;
    dbms_output.put_line('name='||r1.v_name||'salary='||r1.v_sal);
    end loop;
    END;


