Ok .. I know I sent a bad example. Here´s another try:
update T set field = 'new_value' where (ID) in (select ID from T where
field1='xyz' and field2 = 'foo' fetch first 1000 rows only)
However , the plan has two index scans. Is there any better solution
with a single scan ?
The delete statement posted before has only one index scan ... Can I
achieve the same with update ?
Thanks, Michel
update T set field = 'new_value' where (ID) in (select ID from T where
field1='xyz' and field2 = 'foo' fetch first 1000 rows only)
However , the plan has two index scans. Is there any better solution
with a single scan ?
The delete statement posted before has only one index scan ... Can I
achieve the same with update ?
Thanks, Michel
Comment