Oracle 11g: In PL/SQL is there any way to get info about inserted and updated rows after MERGE DML statement?
问题 I would like to know is there any way to receive information in PL/SQL how many rows have been updated and how many rows have been inserted while my PL/SQL script using MERGE DML statement. Let's use Oracle example of merge described here: MERGE example This functionality is used in my function but also I'd like to log information how many rows has beed updated and how many rows have been inserted. 回答1: There is a not a built-in way to get separate insert and update counts, no. SQL%ROWCOUNT