Я пытаюсь получить результаты из таблицы, используя процедуру PL / SQL
это процедура
CREATE OR REPLACE PROCEDURE getEmpById(
e_id IN employee.empid%TYPE,
emp_name OUT employee.empname%TYPE,
emp_desig OUT employee.designation%TYPE)
IS
BEGIN
SELECT empname,designation INTO emp_name, emp_desig FROM employee WHERE empid = e_id;
END;
/
и это вызывающий блок
DECLARE
e_id:=&e_id;
emp_name employee.empname%TYPE;
emp_desig employee.designation%TYPE;
BEGIN
getEmpById(e_id,emp_name,emp_desig);
DBMS_OUTPUT.PUT_LINE('Name : ' || emp_name);
DBMS_OUTPUT.PUT_LINE('Designation : ' || emp_desig);
END;
/
и это ошибка, которую я получаю
Enter value for e_id: 'AIT005'
old 2: e_id:=&e_id;
new 2: e_id:='AIT005';
e_id:='AIT005';
*
ERROR at line 2:
ORA-06550: line 2, column 8:
PLS-00103: Encountered the symbol "=" when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table LONG_ double ref
char time timestamp interval date binary national character
nchar
The symbol "<an identifier>" was substituted for "=" to continue.