在Sql Server 中有个 @@RowCount ,在对数据进行操作时,可以查询到数据返回的行数,不知在Oracle中怎么实现

解决方案 »

  1.   

    sql%rowcount 是用在游标中的吧?
    有没有具体的语句?
      

  2.   

    select count(*) from table
      

  3.   

    type tab_no table of emp.empno%type;
    eno tab_no;
    begin
     delete from emp returning empno bulk collent into eno;end ;
      

  4.   

    type tab_no table of emp.empno%type;
    eno tab_no;
    begin
     delete from emp returning empno bulk collent into eno;
    dbms_output.put_line(eno.count);
    end ;
      

  5.   

    上面也可以,把删除的记录批量取到PL/SQL表中,再输出它的行数.
    但是,如果是更新呢?
    好像就有点麻烦了吧?