I keep getting an error next to the return VARCHAR(4)
问题 ERROR IS BETWEEN THE VARCHAR2 AND THE (4) seems to be a syntax error. create or replace FUNCTION Employee_exists (p_employee_id IN NUMBER) RETURN VARCHAR2(4); AS BEGIN SELECT employee_id FROM employees WHERE employee_id = p_employee_id; RETURN 'true'; END Employee_exists; 回答1: There are actually two errors: You can't specify the length of the return type in a function or procedure specification ; is a statement terminator, as such it has no place between the return type and AS Your first line