CREATE OR REPLACE FUNCTION FN_GET_DD (
vi_seq IN VARCHAR2
)
RETURN VARCHAR2 IS reStr VARCHAR2(50);
BEGIN
reStr := '';
SELECT DD INTO reStr
FROM DDDD
WHERE DD = vi_seq;
RETURN reStr;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN '';
WHEN OTHERS THEN
RETURN '';
END FN_GET_DD;
/
vi_seq IN VARCHAR2
)
RETURN VARCHAR2 IS reStr VARCHAR2(50);
BEGIN
reStr := '';
SELECT DD INTO reStr
FROM DDDD
WHERE DD = vi_seq;
RETURN reStr;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN '';
WHEN OTHERS THEN
RETURN '';
END FN_GET_DD;
/
'Db > Oracle' 카테고리의 다른 글
Oracle Package Procedure Sample (2) | 2010.04.06 |
---|---|
Oracle 암/복호화 Package Function Sample(dbms_obfuscation_toolkit) (3) | 2010.04.06 |
Oracle Job sample (3) | 2010.04.06 |
Oracle 세로 데이터를 가로로 표현 (1) | 2010.04.06 |
Oracle split 구현 (2) | 2010.04.06 |