Can we help me with bug?
In pl/sql I have a bug, but I can not find him !
I think problem with variable ast !
ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
declare
ast varchar2(50);
slr emp.salary%type;
max1 emp.employee_id%type;
min1 emp.employee_id%type;
begin
select min (employee_id)
into min1
from employees;
select max (employee_id)
into max1
from employees;
for i in min1..max1
loop
select (round (salary /1000))
into slr
from employees
where employee_id = i ;
for i in 1..slr loop
ast := ast || '*' ;
end loop;
update emp set stars = ast
where employee_id=i;
commit;
end loop;
end;