其中的update是不是应该这样写啊,加个WHERE子句
update yg_userinfo set user_name=:new.user_name where user_index=:new.user_index;

解决方案 »

  1.   

    你的插入语句写成这样 insert into yg_userinfo (user_index,user_name) values(:new.user_index,:new.user_name); 其中使用的是修改后的值,当然总是更新后的值。改成insert into yg_userinfo (user_index,user_name) values(:old.user_index,:old.user_name); 就可以了
      

  2.   

    lightwind的见解正确 我在午饭时终于意识到了自己的错误
    不过哪有pl/sql的书籍下啊 一直在摸索ing 没书 痛苦
      

  3.   

    超星的
    http://soft.studa.com/soft/4607.htm