View Single Post
  #1 (permalink)  
Old 02-06-03, 13:51
David2002 David2002 is offline
Registered User
 
Join Date: Jul 2002
Posts: 86
Question about Delete some rows from large table

Hi
I work with db2 7.2 AIX, I need to delete some rows from a large table with 20 mil records I use
delete from TAB-A where co11= 'A';
I have index on col1 but it takes long about 1/2 hours that is not acceptable, Some body suggested me I deaclare cursor and use "where current cursor cursor-name" in my delete sql statement. any idea and help will be appreciated.
Thanks
Reply With Quote