以下定義的FUNCTIONsql
CREATE OR REPLACE FUNCTION FNC_TEST_001( PV_USER_CD IN OUT VARCHAR ,PV_USER_NM OUT VARCHAR )
調用時
spa
declare user_cd varchar(20); user_nm varchar(1000); ret varchar(1000); begin user_cd:= '10000000'; ret := FNC2502( PV_USER_CD => user_cd ,PV_USER_NM => user_nm ); DBMS_OUTPUT.PUT_LINE(ret); DBMS_OUTPUT.PUT_LINE(user_cd); DBMS_OUTPUT.PUT_LINE(user_nm); end;