select * from test_table_name connect by prior id=root_id start with root_id=211;
declare
cursor c_birim
is
select *
from test_table_name
connect by prior id=root_id
start with root_id=211;
begin
for r_birim in c_birim loop
update test_table
set tur_id=1
where id=r_birim.id;
end loop;
end;
declare
cursor c_birim
is
select *
from test_table_name
connect by prior id=root_id
start with root_id=211;
begin
for r_birim in c_birim loop
update test_table
set tur_id=1
where id=r_birim.id;
end loop;
end;
Comments
Post a Comment