Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plsql PLS-00103:遇到符号_Plsql - Fatal编程技术网

Plsql PLS-00103:遇到符号

Plsql PLS-00103:遇到符号,plsql,Plsql,我正在尝试编译这个函数 CREATE OR REPLACE FUNCTION sql_error_msg (err_num PLS_INTEGER) RETURN VARCHAR2 IS BEGIN RETURN sqlerrm(-err_num); EXCEPTION WHEN OTHERS THEN RETURN NULL; END sql_error_msg / 但我得到了这个错误: FUNCTION SQL_ERROR_MSG On line: 8 PLS-00103:

我正在尝试编译这个函数

CREATE OR REPLACE FUNCTION sql_error_msg (err_num PLS_INTEGER) 
RETURN VARCHAR2 IS 
BEGIN 
RETURN sqlerrm(-err_num); 
EXCEPTION 
WHEN OTHERS THEN 
RETURN NULL; 
END sql_error_msg
/
但我得到了这个错误:

FUNCTION SQL_ERROR_MSG
On line:  8
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:

   ;
The symbol ";" was substituted for "end-of-file" to continue.

只需添加
位于函数末尾

 END sql_error_msg;
/

我试图使用
标记执行“创建或替换”函数的PL/SQL。我收到了PLS-00103,结果证明PL/SQL目前不支持这种方式

您必须以不同的方式执行脚本

我将按照下面的步骤直接尝试使用JDBC 然后从那里找到解决办法