declare
cnt int;
begin
update a set colA='123';
--怎么用一条语句知道上一条更新了多少条
cnt:=sql%rowcount;
dbms_output.put_line(cnt);
end;
cnt int;
begin
update a set colA='123';
--怎么用一条语句知道上一条更新了多少条
cnt:=sql%rowcount;
dbms_output.put_line(cnt);
end;
create or replace procedure rcount
(RecordCount out int)begin
update table set 列名='XXX';
--怎么用一条语句知道上一条更新了多少条
RecordCount:=sql%rowcount;
end;