我正在尝试为 pl/sql 分配的绑定变量分配一个数字值,它给了我错误:
Error report:
ORA-01403: no data found
ORA-06512: at line 15
01403. 00000 - "no data found"
Cause:
Action:
b_emp_id
------
b_emp_id
和代码
VARIABLE b_emp_id NUMBER
DECLARE
v_emp_id employees.employee_id%TYPE;
v_FIRST_NAME employees.first_name%TYPE;
v_LAST_NAME employees.last_name%TYPE;
v_JOB_ID employees.job_id%TYPE;
v_HIRE_DATE employees.hire_date%TYPE;
v_message VARCHAR2(30);
v_difference NUMBER(3);
BEGIN
:b_emp_id:=110;
SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME, job_id, HIRE_DATE
INTO v_emp_id, v_FIRST_NAME, v_LAST_NAME, v_JOB_ID, v_HIRE_DATE
FROM employees
WHERE EMPLOYEE_ID = :b_emp_id;
谢谢大家!!!