Home > Database > Mysql Tutorial > ORA-00911: 无效字符

ORA-00911: 无效字符

WBOY
Release: 2016-06-07 17:15:50
Original
6366 people have browsed it

ORA-00911: 无效字符,注意上面代码中的 ; 号,这个在execute immediate执行时就会报错,属于多余字符,在plsql中必须去掉, ; 号

sql_code := 'insert into T_DVR_VOCABULARYITEMS values(sys_guid(),''0'',''Active'',''赵如鹏'',''0'',sysdate,sysdate,'''||

voc_system_pid ||''',''' || voc_pid || ''','''|| code_pid||''');';

execute immediate sql_code;

以上是plsql过程代码,编译通过,在执行时报:

ORA-00911: 无效字符

ORA-06512: 在 "DVR1.P_SET_VOC_ITEMS", line 27

ORA-06512: 在 line 2

解决办法:

注意上面代码中的 ; 号,这个在execute immediate执行时就会报错,属于多余字符,在plsql中必须去掉,, ; 号只在sqlplus有用,做为sql语句结束符。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template