问题描述
这是我的函数,它采用Department.dept_name%type类型的参数。哪个是varchar2(20)
```
create or replace function count_doc(dep_name_local department.dept_name%TYPE)
return number is
x int;
begin
select count(doc_id) into x from doctor where dept_no in(select dept_no from department where dept_name=dep_name_local);
return x;
end;
```
这是我的函数调用。
declare
dep_namePass department.dept_name%TYPE;
begin
dep_namePass:='Cardiology';
dbms_output.get_line(count_doc(dep_namePass));
end;
```
Please tell me what am I doing wrong. I am a beginner :( . I am doing this in livesql btw.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)