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!

how to print out multiple results

493569Feb 25 2006 — edited Mar 6 2006
Hi,

I have to write a member procedure to print out all current offers stored in a offer table.

The code i've wrote so far is below:

create or replace type body offer_typA as
member procedure Display_current_offers is
Description Varchar2(30);
begin
SELECT Desc INTO Description
FROM offer_objtabA
WHERE Expiry_date >= SYSDate;
dbms.output.put_line('Current Offers: ' || Description);
end Display_current_offers;
end;
/
show errors;

I'm not sure whether this will work, it it possiblr to print out multiple values?

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2006
Added on Feb 25 2006
20 comments
1,648 views