Skip to Main Content

APEX

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!

DBMS_OUTPUT.PUTLINE Not Working

user1250676Jul 24 2013 — edited Jul 29 2013

I am new to Application express.I am unable to display anything on the screen (under the Results tab) in SQL Commands. I have the following program:

set serveroutput on;

Declare

vfirstname varchar2(35);

vlastname varchar2(35);

ccounter CONSTANT NUMBER:=0;

begin

select first_name, last_name into vfirstname, vlastname

from student_sby

where student_id=123;

dbms_OUTPUT.PUT_LINE ('student name: ' || ' ' || vlastname);

end;

When I run the program, it does not produce any error and any out put.

If I just have the select statement I get the results displayed.

select first_name, last_name

from student_sby

where student_id=123;

Any help will be appreciated. I am using Oracle Application Express version 4.x.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2013
Added on Jul 24 2013
18 comments
4,777 views