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: Can dbms_output.put_line reflect sql output/feedback information ?

Re: Can dbms_output.put_line reflect sql output/feedback information ?

From: Brian Peasland <oracle_dba_at_remove_spam.peasland.com>
Date: Thu, 29 May 2003 14:35:10 GMT
Message-ID: <3ED61A9E.88AB20D@remove_spam.peasland.com>


There is no switch which will do this, but you can code it in your PL/SQL block. After an update, use SQL%ROWCOUNT to determine how many rows were updated (similarly for insert). Then have your PUT_LINE statement generate the appropriate line.

HTH,
Brian

Wanda Zoe wrote:
>
> At the moment...
> SQL> exec sbs.test.func2('ss','ddd');
> PL/SQL procedure successfully completed.
>
> I want it to say
> SQL> exec sbs.test.func2('ss','ddd');
> 1 row created
> 1 row updated
> ....etc....and then ..
> PL/SQL procedure successfully completed.
>
> Currently I'm adding lots of dbms_output information, and this I can view,
> but i want to add
> the actual sql feedback in there as well....
>
> Any help will be appreciated.

-- 
===================================================================

Brian Peasland
oracle_dba_at_remove_spam.peasland.com

Remove the "remove_spam" from the email address to email me.


"I can give it to you cheap, quick, and good. Now pick two out of
 the three"
Received on Thu May 29 2003 - 09:35:10 CDT

Original text of this message

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