当前位置:网站首页>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 .
边栏推荐
猜你喜欢
随机推荐
unable to convert expression into double array
log4j
[JVM] brief introduction to CMS
Plan the IT technology route for the new year? Let's learn about Gartner infrastructure hype cycle
Brève description du collecteur d'ordures G1
Financial private cloud infrastructure scheme evaluation (Architecture and storage)
长城数艺数字藏品平台发布创世徽章
Jump table introduction
Open source! Wenxin large model Ernie tiny lightweight technology, accurate and fast, full effect
孙安民作品《莲花净心》数字藏品上线长城数艺
How does the diode work?
Flume learning 1
Input limit input
AttributeError: ‘Version‘ object has no attribute ‘major‘
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
Basic MySQL operation commands of database
1033 To Fill or Not to Fill
JS get the substring of the specified character position and the specified character position interval of the specified string [simple and detailed]
OSError: [Errno 28] No space left on device
力扣 428. 序列化和反序列化 N 叉树 DFS








