CREATE OR REPLACE FUNCTION TRF.F_CORR_DATA
RETURN P_CORR_DATA.tab_CORR_DATA_table PIPELINED IS
TYPE ref0 IS REF CURSOR;
cur0 ref0;
out_rec P_CORR_DATA.tab_CORR_DATA;
BEGIN
OPEN cur0 FOR
SELECT CalcFunction, fnCalcStr(CalcFunction) FROM TESTTABLE;
LOOP
FETCH cur0 INTO out_rec.CalcStr, out_rec.Result;
EXIT WHEN cur0%NOTFOUND;
PIPE ROW(out_rec);
END LOOP;
CLOSE cur0;
RETURN;
END F_CORR_DATA;
/
현재 유저가 가지고 있는 시스템 권한 확인 (0) | 2012.06.07 |
---|---|
Table Function 예제-2 (0) | 2012.06.04 |
Oracle Function 예제 (0) | 2012.06.04 |
Oracle 저장함수 RAISE_APPLICATION_ERROR (0) | 2012.05.31 |
SYS, SYSTEM 비번을 잃어버렸을때 (0) | 2012.05.31 |