FUNCTION authenticate(p_username IN VARCHAR2,p_password IN VARCHAR2) RETURN
BOOLEAN
is
l_count integer;
begin
select count(*)
into l_count
from STUDENT, ADMIN, ORGANISATION
WHERE upper(Student.STUDENT_ID, ADMIN.ADMIN_ID, ORGANISATION.ORG_ID) =
upper(p_username)
AND upper(Student.STUDENT_PASSWORD, ADMIN.ADMIN_PASSWORD,
ORGANISATION.ORG_PASSWORD) = upper(p_password);
return (l_count > 0);
end;
以上是我为从多个表中获取信息并使用它们来验证登录名而制作的身份验证代码。如果我只是为学生做它工作正常,但我需要多种类型的用户才能访问该软件,我不能同时运行多个身份验证方案所有表名和列名都是正确的下面是我得到的错误ORA-06550:第 9 行,第 7 列:PL/SQL:ORA-00909:参数数量无效 ORA-06550:第 6 行,第 1 列:PL/SQL:忽略 SQL 语句