Difference between revisions of "OE.GET PHONE NUMBER F (function)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''function | OE.GET_PHONE_NUMBER_F |- |} <pre> FUNCTION get_phone_number_f (p_in INTE...) |
|||
Line 7: | Line 7: | ||
|- | |- | ||
|} | |} | ||
+ | |||
<pre> | <pre> | ||
− | FUNCTION get_phone_number_f | + | CREATE OR REPLACE FUNCTION get_phone_number_f |
(p_in INTEGER, p_phonelist phone_list_typ) | (p_in INTEGER, p_phonelist phone_list_typ) | ||
RETURN VARCHAR2 AS | RETURN VARCHAR2 AS |
Revision as of 20:11, 24 August 2009
wikibot
function | OE.GET_PHONE_NUMBER_F |
CREATE OR REPLACE FUNCTION get_phone_number_f (p_in INTEGER, p_phonelist phone_list_typ) RETURN VARCHAR2 AS TYPE phone_list IS VARRAY(5) OF VARCHAR2(25); phone_out varchar2(25) := null; v_size INTEGER; BEGIN IF p_phonelist.FIRST IS NULL OR p_in > (p_phonelist.LAST + 1) - p_phonelist.FIRST THEN RETURN phone_out; ELSE phone_out := p_phonelist(p_in); RETURN phone_out; END IF; END;