双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

ORACLE 存储过程 ORA-00900:无效SQL语句

thinoft thinoft 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
CREATE OR REPLACE PROCEDURE proc_clrwl_ds1
(
unit in nvarchar2,
)
is
t number;
adpt_name nvarchar2(50);
begin
t:=40;
if (t<=120) then
begin
select dpt_name into adpt_name from usr_dpt;
commit;
end;
else
begin
select dpt_name into adpt_name from usr_dpt where dpt_name=unit;
commit;
end;
end if;
commit;
end;

贴出SQL希望大家指正,只要我一执行就报ORA-00900,执行的SQL:exec proc proc_clrwl_ds1('')
...全文
评论 17
收藏 已收藏
分享
返回顶部
thinoft
Oracle 17,133 成员 55,258 内容