if not exists(select * from TSend, dual where FIsActive = 1 and FToTime >= sysdate and Ftype = 2) then
        --一分钟后返回一条错误信息
          insert into xujp_96345_send_record(tele_num, content, flag_send)
          select SEND_DEST, '当前没有可以投票的活动', -1 from dual;
          commit;
          return;
   end if;commit;不加也是这样, 把return 改成exit 也是这样。
请多多指点,谢谢这条语句,编译通不过
Compilation errors for PROCEDURE JIAJIE.CMPP_PROCError: PLS-00103: 出现符号 ";"在需要下列之一时:
        ;
       符号 ";在 ";" 继续之前已插入。
Line: 29
Text: end if;

解决方案 »

  1.   

    ; and ; are different.
      

  2.   

    select 1=1,1='1', '1.0'=1, '1'='1.0', '01' = ' 1', '01' = '  1 ', 1='01 ', '1 '=1, '1.'=1, 1.00=1.0, '1.00'='1.0';What's the result in MYSQL? If using Oracle, add "from dual" at the end.DO YOU KNOW BEFORE RUNNING IT?
      

  3.   

    不过;和;这两个在pl/sql devloper里面还真看不出来。不过除了这个问题外,还有提示exists错误