update test set vouchertab ='1' where fid in (
select t.fid from
(
select fid from test where recordNo is not null order by contractTime desc
) t
where rownum < 5001
)
update test set vouchertab ='1' where fid in (
select t.fid from
(
select fid from test where recordNo is not null order by contractTime desc
) t
where rownum < 5001
)