Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: newbie having woes with dbms_output in functions

Re: newbie having woes with dbms_output in functions

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Thu, 01 Mar 2007 22:53:54 +0100
Message-ID: <45E74B72.2050509@gmail.com>


sean nakasone schrieb:
> Even with 'set serveroutput on' it does not print 'hello', it only
> prints 'at the end'.
>
> I'm using oracle 9.2. Here's a cut and paste from my sqlplus console.
>
> SQL> set serveroutput on
> SQL> create or replace function seanFunc1(val varchar2)
> 2 return varchar2 is
> 3 begin
> 4 dbms_output.enable(1000000);
> 5 dbms_output.put_line('hello');
> 6 return 'at the end';
> 7 end;
> 8 /
>
> Function created.
>
> SQL>
> SQL>
> SQL> select seanFunc1('the') from dual;
>
> at the end

Could you read again the answer given you by William Robertson?

Best regards

Maxim Received on Thu Mar 01 2007 - 15:53:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US