--建立测试数据表
create table target(
id varchar(32),
value varchar(32)
);
insert into target(id) values('1');
insert into target(id) values('2');
insert into target(id) values('3');
insert into target(id) values('4');
--更新查询出的数据,设置value值为111
update target set value = '111' where id in(select id from target where id between '1' and '4');
commit;用的oracle数据库