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 -> Direct path Insert/Append row count

Direct path Insert/Append row count

From: hbar <craig.nelson_at_transplace.com>
Date: 7 Mar 2003 13:28:52 -0800
Message-ID: <4c657437.0303071328.31a8b835@posting.google.com>


Say you have a query like this that appears in a PL/SQL block.

INSERT /*+ APPEND */ INTO t1 (SELECT * FROM t2);

How do you tell how many rows were inserted into t1? Obviously I could run a count on the select statement from t2 that appears in the insert, or I could run a count on t1 before and after the insert and find the difference. But SQLPlus reports back the inserted count...surely I can nab that same value from PL/SQL.

Any ideas? Thanks! Received on Fri Mar 07 2003 - 15:28:52 CST

Original text of this message

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