不是:new.sortid用错了
是select 用错了
要写成select * into ... from sortid=:new.sortid 其中...为你定义的一个游标或变量

解决方案 »

  1.   

    没有  where 子句么?
      

  2.   

    呵呵,照抄,还抄出了问题:)
    select * into ... from 表 where sortid=:new.sortid doulikeme(来去无踪) :)
      

  3.   

    cursor c_des is
      select *
      from des_13
      where cardid =:new.cordid;
      我这样写对吗
      

  4.   

    Compilation errors for TRIGGER DES.TRI02Error: PLS-00049: 错误的赋值变量 'NEW.CORDID'
    Line: 17
    Text: where cardid =:new.cordid;
    ------------------------------------------------
    上面是错误信息
    我用的是PL/SQL Developer 6.0
      

  5.   

    Compilation errors for TRIGGER DES.TRI02Error: PLS-00049: 错误的赋值变量 'NEW.CORDID'
    Line: 17
    Text: where cardid =:new.cordid;
    ------------------------------------------------
    上面是错误信息
    我用的是PL/SQL Developer 6.0
      

  6.   

    cardid =:new.cordid;前后的字段不一致啊