• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Batch SQL Delete

 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There is a way to perform SQL update operation in batch using BatchSqlUpdate class.Similarly is there any way to perform delete operation also in batch?.Say i want to delete set of records at one stretch.I know there is no such class like BatchSqlDelete.But is there any other way to perform the same?.

Any inputs on this would be very much appreciated.

Thanks in advance...

Regards,
Priya.
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Priya,

BatchSqlUpdate works for inserts as well (see www.springdeveloper.com/oscon/jdbc.pdf), so it probably works for deletes too.

javax.sql.Statement also has executeUpdate(..) method that does insert, delete
(and update of course)

Herman
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic