Oracle code example:
create or replace PROCEDURE GET_AGE_OF_FIRST_OFFENSE
( t_cursor OUT SYS_REFCURSOR )
AS
BEGIN
OPEN t_cursor FOR
select * from age_of_first_offense;
END GET_AGE_OF_FIRST_OFFENSE;
Openquery example(s):
select * from openquery(ORACLE_TEST,'GET_AGE_OF_FIRST_OFFENSE')
|