通过输入学校名称查找学校负责人
CREATE OR REPLACE PROCEDURE getHeadOfSchool( inSchoolName IN VARCHAR ) IS
DECLARE
V_headOfSchool school.headOfSchool%TYPE;
BEGIN
SELECT headOfSchool INTO v_headOfSchool FROM school WHERE schoolName = inSchoolName;
DBMS_OUTPUT.PUT_LINE(‘The head of the school is ’||v_headOfSchool);
END;
/
当我运行它时它说编译错误。为什么?