update ASM a set times=(select row_number() over(partition by name,date order by rownum from asm b where b.name=a.name);system用户没有select on hbj.ASM 权限
grant select on hbj.ASM to system;

解决方案 »

  1.   

    update ASM a set times=(select row_number() over(partition by name,date order by rownum from asm b where b.name=a.name);system用户没有select on hbj.ASM 权限
    grant select on hbj.ASM to system;
      

  2.   

    你的SQL语句不行.出现什么结果集大于1的错误
      

  3.   

    为什么编译让我的PL DEVELOPER死掉了呢?
      

  4.   

    select name,date,row_number() over(partition by name,date order by rownum) times from asm;
    以上出现怎样的结果?
      

  5.   

    update ASM a set INSPECTION_TIMES=(select row_number() over(partition by LICENSE order by rownum) times from asm b where b.LICENSE=a.LICENSE and a.LICENSE is not null and b.LICENSE is not null);
    出现"单行子查询返回多于一个行"select row_number() 处
    另外在编译存储过程时为什么总出现无法锁定表,导致超时,编译失败