Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Re: Number_of_rows
Jacques.... are you sure? It would, of course, mean actually READING the manual
Rachel
--- Jacques Kilchoer <Jacques.Kilchoer_at_quest.com> wrote:
> Oracle SQL has a handy-dandy command called INSERT that allows you to
> put
> data into a table. I think INSERT is documented in the SQL manual.
>
> > -----Original Message-----
> > From: Roland.Skoldblom_at_ica.se [mailto:Roland.Skoldblom_at_ica.se]
> >
> > Yes But I want thatthat number is inserted into the table.
> >
> > Rajesh.Rao_at_chase.com_at_fatcity.com den 2002-01-25 10:39 PST
> >
> > Use SQL%ROWCOUNT.
> >
> > BEGIN
> > insert into table1
> > select * from table2;
> > dbms_output.put_line(SQL%ROWCOUNT);
> > END;
> > /
> >
> > Executing this PL/SQL block should display you the number of
> > rows that were
> > inserted into table1.
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rachel Carmichael INET: wisernet100_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Jan 25 2002 - 21:12:27 CST