What's the result ? You should add dbms_output.put_line to display the result and you will know whether it's working or not

解决方案 »

  1.   

    CURSOR c1 IS SELECT ename FROM emp FOR UPDATE OF sal
    以上是emp表
    INSERT INTO temp VALUES (ctr, 'still going');
    以上是temp 表
    是你的过程本来就这样???
    什么叫可以运行,你的意思就是没有异常是不是。
    FOR UPDATE 本来就是行级锁,应当可以insert,只是不能在别的session中update锁定行