📄 empcount.sql
字号:
-- create an Oracle library for the DLL
create or replace library DeptLib AS 'C:\ExtProc\dept.dll';
-- create an external function definition
create or replace
function EmpCount(p_DeptNo in dept.deptno%type)
return number
as external language c
name "EmpCount"
library DeptLib
with context;
/
-- assuming the dll is in place, the following query should demonstrate
-- the created empcount function
select deptno, dname, empcount(deptno) from dept;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -