Write a program in PL/SQL to FETCH single record and single column from a table
- pl/sql
- 2021-09-28
- mhanasmh00489829403
الأجوبة
DECLARE
v_emp_name VARCHAR2(50);
CURSOR emp_cur_name IS
SELECT first_name
FROM employees
WHERE employee_id = 105;
BEGIN
OPEN emp_cur_name;
FETCH emp_cur_name
INTO v_emp_name;
dbms_output.put_line('The name of the employee is:’
|| v_emp_name);
CLOSE emp_cur_name;
END;
/
Sample Output:
SQL> / The name of the employee is:David PL/SQL procedure successfully completed.
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة