CREATE OR REPLACE FUNCTION IS_MEMBER( USER_ID Varchar )
RETURN NUMBER IS
dResult NUMBER;
sLoginUser Varchar(200);
BEGIN
dResult :=0;
SELECT user into sLoginUser from dual;
IF upper(sLoginUser)= upper(USER_ID) THEN
dResult :=1;
END IF;
RETURN dResult;
END;
/