当前位置:网站首页>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 .
边栏推荐
- NFS shared services
- [C language quick start] let you know C language and get started with zero basics ③
- Quick completion guide for mechanical arm (V): end effector
- keras ‘InputLayer‘ object is not iterable
- 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
- 事件委托的使用与说明》
- Koreano essential creates a professional style
- 鼠标右键打开cmd(命令行)
- Installing Oracle database process in windows2007 on VM
- train_ de.py: error: argument --save_ steps: invalid int value: ‘$[$[889580/128/4]*10/2]‘
猜你喜欢

“昆明城市咖啡地图”活动再度开启
![[AGC] build service 3- authentication service example](/img/32/44547c00476a055557dd1790e18849.png)
[AGC] build service 3- authentication service example

‘Failed to fetch current robot state‘ when using the ‘plan_ kinematic_ path‘ service #868

unable to convert expression into double array

2022第六季完美童模 托克逊赛区 决赛圆满落幕

KOREANO ESSENTIAL打造气质职场范

NLopt--非线性优化--原理介绍及使用方法

Right click to open CMD (command line)

Appium自动化测试基础 — 12.APPium自动化测试框架介绍

乡村振兴公益基金启动暨古茶树非遗保护公益行发布
随机推荐
Use and description of event delegation
JUL简介
9. cache optimization
Jump table introduction
Shell script functions
[ark UI] implementation of the startup page of harmoniyos ETS
Financial private cloud infrastructure scheme evaluation (Architecture and storage)
Flume learning II - Cases
The digital collection of sunanmin's lotus heart clearing was launched on the Great Wall Digital Art
采坑:Didn‘t receive robot state (joint angles) with recent timestamp within 1 seconds.
Detailed explanation of commissioning methods and techniques
"Kunming City coffee map" activity was launched again
Rider does not prompt after opening unity script
How does the diode work?
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
磁悬浮3D灯
[JVM] G1 garbage collector
Splendid China: public welfare tourism for the middle-aged and the elderly - entering Foshan nursing home
KOREANO ESSENTIAL打造气质职场范
Hospital integration platform super fusion infrastructure transformation scheme