在SQL*PLUS里UPDATE后
提示“已更新一行”(表示更新了一行),
或“已更新0行”(表示一行也没有更新)

解决方案 »

  1.   

    update b
    set dd=1
    where a=2if sql%notfound thenend if;
      

  2.   

    UPDATE .....
    COMMIT;
    后 SQLPLUS 有提示。FORM等开发工具也应有相应的提示。
      

  3.   

    如果是sqlplus中
    set feedback on
    然后update 
    会有相应返回提示。如果还是不放心,可以在同一session中 select你刚才update的记录。
      

  4.   

    begin
       update mytable set ...
        where ....;
       if sql%rowcount > 1 then
          ...
       end if;
       ...
    end;紧跟在一句insert/update或者delete之后的sql%rowcount就是最近一次dml操作处理的行数