Legal | Privacy
--- cre_func.sql

--- Create a function that populates the cache

connect hr/hr

create or replace function EMP_COUNT(dept_no number)
return number
result_cache relies_on (employees)
is
 v_count number;
begin
 select count(*) into v_count
 from employees
 where department_id = dept_no;

 return v_count;
end;
/ 
E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy