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

Home -> Community -> Usenet -> c.d.o.server -> Re: How can I receive number of rows inserted in PL/SQL?

Re: How can I receive number of rows inserted in PL/SQL?

From: Noons <wizofoz2k_at_yahoo.com.au.nospam>
Date: Mon, 23 Jun 2003 19:16:44 +1000
Message-ID: <3ef6c5e0$1$24424$afc38c87@news.optusnet.com.au>


"Christian Haberbosch" <haberbosch_at_web.de> wrote in message news:2d2929da97a69b432035d8daa5025eb2.30428_at_mygate.mailgate.org...

> I want to have a function like:
> -- the function p1 copies all records from t1 to t2
> -- and returns how many rows have been inserted in t2
> create or replace function p1 return number
> is
> begin
> insert into t2(id) select id from t1;

return SQL%ROWCOUNT;

> end p1;
>

HTH

--
Cheers
Nuno Souto
wizofoz2k_at_yahoo.com.au.nospam
Received on Mon Jun 23 2003 - 04:16:44 CDT

Original text of this message

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