declare 
   cnt int;
begin
  update a set colA='123';
  --怎么用一条语句知道上一条更新了多少条
  cnt:=sql%rowcount;
  dbms_output.put_line(cnt);
end;