SQL>
SQL> CREATE OR REPLACE FUNCTION myFunction(in_username IN VARCHAR,in_new_password IN VARCHAR,in_old_password IN VARCHAR)
2 RETURN BOOLEAN
3 AS
4 pwd_okay BOOLEAN;
5 BEGIN
6 IF in_new_password = in_username THEN
7 raise_application_error(-20001, 'Password may not be username');
8 END IF;
9 RETURN TRUE;
10 END myFunction;
11 /
Function created.
SQL>
|