当前位置:网站首页>Oracle creates a stored procedure successfully, but the compilation fails
Oracle creates a stored procedure successfully, but the compilation fails
2022-06-30 10:17:00 【Adair_ Xu】
The initial code is :
CREATE or REPLACE PROCEDURE get_department_name
(in_empno IN number(4) , out_department_name OUT varchar2) IS
BEGIN
SELECT d.dname
INTO out_department_name
FROM emp e LEFT JOIN dept d on e.deptno=d.deptno
WHERE e.empno=in_empno;
END;
However, an exception is reported :
solve : The input parameter in_empno The data type of is changed to number, When creating a stored procedure , Numeric types can only be used NUMBER, Length cannot be specified .
==================================================================================================
in addition : The exception shows that the stored procedure was created successfully , And in Plsql Success is also shown in , In fact, it is equivalent to not creating successfully , Cannot call at all , The following exception is reported when calling
At first, I thought that although the compilation was wrong , But after all, it was created successfully , It should work , The result is that... Cannot be called at all . All exceptions with errors if the report is created successfully , Be sure to get rid of this exception , Otherwise, the stored procedure is not created .
边栏推荐
- 将小程序容器技术应用到物联网IoT生态建设中
- log4j
- "Kunming City coffee map" activity was launched again
- The URL copied by the browser and pasted into the document is a hyperlink
- 戴森设计大奖,以可持续化设计改变世界
- Flume learning 1
- How can we have high performance and simple agility in the enterprise cloud on oracle?
- The famous painter shiguoliang's "harvest season" digital collection was launched on the Great Wall Digital Art
- Deploy lvs-dr cluster
- [JVM] G1 garbage collector
猜你喜欢
"Kunming City coffee map" activity was launched again
How can we have high performance and simple agility in the enterprise cloud on oracle?
新冠无情人有情,芸众惠爱心善举暖人间——捐赠商丘市儿童福利院公益行动
Right click to open CMD (command line)
Theme Studio
“昆明城市咖啡地图”再度开启,咖啡拉近城市距离
NLopt--非线性优化--原理介绍及使用方法
2022第六季完美童模 托克逊赛区 决赛圆满落幕
Installation and use
长城数艺数字藏品平台发布创世徽章
随机推荐
Regular expression Basics
Some domestic image sources
事件流的说明》
关于字符串的split和join操作
陈颢天 荣获第七届少儿模特明星盛典全国总决赛 全国总冠军
Guolin was crowned the third place of global popularity of perfect master in the third quarter of 2022
Brève description du collecteur d'ordures G1
NFS shared services
Input limit input
机械臂速成小指南(四):机械臂关键部件之减速机
力扣 428. 序列化和反序列化 N 叉树 DFS
Network based BGP
背课文记单词,读课文记单词,读文章记单词;40篇文章搞定3500词;71篇文章突破中考单词;15篇文章贯通四级词汇;15篇文章贯通六级词汇
Network based dynamic routing protocol (OSPF)
log4j
Xinguan has no lover, and all the people benefit from loving deeds to warm the world -- donation to the public welfare action of Shangqiu children's welfare home
Detailed explanation of SolidWorks mass characteristics (inertia tensor, moment of inertia, inertia spindle)
戴森设计大奖,以可持续化设计改变世界
MIT-6874-Deep Learning in the Life Sciences Week4
Appium自动化测试基础 — adb shell 命令