Lets assume that you have some unique order field (ord_field) in your table. Then you could do something close to this:
UPDATE table SET value ='some value'
FROM (
SELECT *, (select COUNT(0)
from table t1
where t2.ord_field <= t1.ord_field
) AS ord
FROM table t2
ORDER BY ord_field ASC) a WHERE table.ord_field = a.ord_field AND a.ord BETTWEN 2 and 4