:NEW.ID: = next_no;  ------>  :NEW.ID:= next_no;

解决方案 »

  1.   

    ......
    begin
       select TblUserInfo_seq.NEXTVALUE into next_no from dual;
       :NEW.ID: = next_no;
    end set_TblUserInfo_no;改成:
    ......
    begin
       select TblUserInfo_seq.NEXTVALUE into next_no from dual;
       :NEW.ID := next_no;   --赋值是 :=, 而不是 : = 
              ^^^^
    end set_TblUserInfo_no;
      

  2.   

    TblUserInfo_seq.NEXTVALUE可能还没有得到值
    直接让next_no :=:new.TblUserInfo_seq试试看。
    不知道是不是这样,你把表的字端列出来看看啊!
      

  3.   

    我怎么老掉东西,new前面的冒号
    :NEW.ID : = :next_no;
      

  4.   

    NEW.ID : = :next_no;?????
    to bzszp(SongZip),为什么要加:号。
    另外: =要连着写,是一个符号
      

  5.   

    NEW.ID : = :next_no;  不对吧.
      

  6.   

    ORA-00103: invalid network protocol; reserved for use by dispatchers 
    Cause: The network specified in Net8 CONNECT string is reserved for use by the dispatchers. Action: Specify other network protocols in the CONNECT string.
    你怎么会有这种错误???奇怪!
      

  7.   

    PLS-00103
    不好意思,我查错了,以上的错误大家都说了,
    就是:=该连着写,我帮你查查PLS-00103
      

  8.   

    PLS-00103
    不好意思,我查错了,以上的错误大家都说了,
    就是:=该连着写,我帮你查查PLS-00103
      

  9.   

    多谢大家, 我已经编译成功了, 上面的语句有2个错误:
     1.:new.ID: = next_no; 正确的是 :new.ID := next_no;
     2. TblUserInfo_seq.NEXTVALUE 正确的是 TblUserInfo_seq.Nextval
    可见书上写的也不全对呀.:)
      

  10.   

    PLS-00103: found str but expected one of the following: str
    Cause: This error message is from the parser. It found a token (language element) that is inappropriate in this context. Action: Check previous tokens as well as the one given in the error message. The line and column numbers given in the error message refer to the end of the faulty language construct.
      

  11.   

    PLS-00103 found str but expected one of the following: strCause This error message is from the parser. It found a token (language element) that is inappropriate in this context. 
    Action Check previous tokens as well as the one given in the error message. The line and column numbers given in the error message refer to the end of the faulty language construct. Copyright (C) 1998, Oracle Corporation
      

  12.   

    本来就是NextVal,那本书上说是NEXTVALUE ???
      

  13.   

    to jlandzpa(ORA-00600) 
      PLS-00103的错误信息从哪里查? 我刚接触oracle.:(
      

  14.   

    oracle reference上有。还有oracle的很多电子文档中也有!
    如oracle帮助