【发布时间】:2017-06-27 11:09:21
【问题描述】:
我正在尝试通过以下方式创建存储过程:
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语法 -
提示:
create or replace procedure. -
您使用的是 Oracle 语法,但错误消息肯定来自 Ms Sql-server。检查您是否连接到正确的服务器
标签: sql oracle java-stored-procedures