我想创建一个存储过程通过以下方式:的Java存储过程给了一个错误
DROP procedure IF EXISTS plus1inout
/;
CREATE procedure plus1inout (IN arg int, OUT res int)
BEGIN ATOMIC
set res = arg + 1;
END
/;
我收到以下错误:
Msg 156, Level 15, State 1.
Incorrect syntax near the keyword 'IF'.
Msg 156, Level 15, State 1.
Incorrect syntax near the keyword 'IN'. (Line 3)
这不是'的Sql Server'语法 –
提示存在的语法:'创建或者更换程序。 –
您正在使用Oracle语法,但错误消息定义来自Ms Sql-server。检查您是否连接到正确的服务器 – Serg