Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Update Stat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 8876 of 9520
Post > Topic >>

Re: Update Statement and frequent commits

by Michel Esber <michel@[EMAIL PROTECTED] > May 11, 2008 at 06:12 PM

Ok .. I know I sent a bad example. Here=B4s another try:

update T set field =3D 'new_value' where (ID) in (select ID from T where
field1=3D'xyz'  and field2 =3D '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
 




 3 Posts in Topic:
Update Statement and frequent commits
Michel Esber <michel@[  2008-05-11 09:54:44 
Re: Update Statement and frequent commits
Michel Esber <michel@[  2008-05-11 18:12:30 
Re: Update Statement and frequent commits
Serge Rielau <srielau@  2008-05-11 21:56:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:40:38 CST 2008.