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!

Print a Resultset in PL/SQL Procedure

Hariharan STMar 7 2008 — edited Mar 7 2008
Dear All,
I want to print a resultset ( table ) immediately after the execution of a procedure in PL/SQL.

Ex:
create or replace proc_name as
begin
select empno,empname from employee;
end;

Is it possible in Oracle ? ( possible in SQL Server)


Note:

We can Achieve it by
Declaring Out Parameter and print in table format using dbms_output.put_line and
Delcaring Our Cursor Variable and print the result.
I want some other methods to achieve it...

Thank u and with regards,
Hariharan .ST
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2008
Added on Mar 7 2008
10 comments
2,174 views