I can’t run this function. It gives the error:
ERROR at line 9: PL/SQL: ORA-00933: SQL command not properly ended
CREATE OR REPLACE FUNCTION login(
name in varchar2,
pass in varchar2 )
RETURN NUMBER
IS
v_type NUMBER;
BEGIN
v_type:=-1;
Select loginfo.type from loginfo into v_type
where loginfo.username=name and loginfo.password=pass;
RETURN v_type;
END;
Thanks in advance.
You need to change the order of
to