oracle报错PLS-00103
今天写了一个存储过程1_INSERT_CT_PANELCHECKFLAG_BK,调用存储过程的时候报错:
SQL> DECLARE
2
3 BEGIN
4 1_INSERT_CT_PANELCHECKFLAG_BK;
5 END;
6 /
1_INSERT_CT_PANELCHECKFLAG_BK;
*
ERROR at line 4:
ORA-06550: 第 4 行, 第 2 列:
PLS-00103: Encountered the symbol "1" when expecting one of the following:
( begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
continue close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe purge
Procedure 1_INSERT_CT_PANELCHECKFLAG_BK encountered an error. Exiting...
原因:
在PL/SQL中,标识符(如存储过程、函数、变量等的名称)不能以数字开头。标识符必须以字母开头,后面可以跟字母、数字和下划线。
解决办法:
修改存储过程的名字为:A_INSERT_CT_PANELCHECKFLAG_BK
每日一句:
愿科技改变生活,大力提高生产力,助中华民族实现伟大复兴,解放全人类!