Need to create a function that verifies a password (more than 5 characters, different from the previous one, it isn't neither "password" nor "123456") I tried this but i get errors
CREATE OR REPLACE FUNCTION my_verification_function (
username VARCHAR2,
password VARCHAR2,
old_password VARCHAR2)
RETURN BOOLEAN IS
BEGIN
IF LENGTH(password) < 6 THEN RETURN FALSE;
ELSE IF (password = "password" OR password = '123' OR password = old_password) THEN RETURN FALSE
ELSE RETURN TRUE;
END IF;
END my_verification_function;$
OR password =?? There is also noelse if. See the manual for details: docs.oracle.com/cd/E11882_01/appdev.112/e25519/… and "password"`` refers to a column or variable. String constants need to be put in single quotes.