定义变量
oracle存储过程怎样定义变量
create or replace procedure practice(dept_id number,v_salary out number)
is
message varchar;
cursor salary_cursor is select salary from employees where department_id=dept_id;
begin
v_salary :=0;
message :="uuuuu";
for c in salary_cursor loop
v_salary := v_salary+c.salary;
end loop;
dbms_output.put_line(v_salary||message);
end;