CREATE OR REPLACE
FUNCTION TESTBYNAME2(XKENTLI_AD VARCHAR2)
RETURN VARCHAR2
IS
XBABAADI VARCHAR2(50);
BEGIN
SELECT BABA_ADI INTO XBABAADI FROM ORT_KENTLI WHERE ADI=XKENTLI_AD AND ROWNUM=1;
IF xbabaadi='MEHMET' THEN
XBABAADI:='KASIM';
END IF;
RETURN XBABAADI;
END;
Comments
Post a Comment