use :
my question is why you want loop concept ? ,just update the '1%' records.
whether you want other purpose means use

declare
n number;
i number default 1;
begin
select count(*) from...