Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to execute insert ,select and delete statemeents at once in JDBC ?  RSS feed

 
Raghavendra ReddyI
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a code snippet





plzz suggest me the right coding
Thanks in advance
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raghavendra ReddyI wrote:plzz suggest me the right coding

Please UseRealWords.
 
Tim Cooke
Marshal
Posts: 3636
184
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes real words are preferable.

But also, "right coding" for what? I don't see a question.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is in the subject. (Try not to do that, as you noticed - people miss it)

For the last two, you can use executeBatch() to do them in one trip to the database. The first query doesn't go together - you do a query and ignore the results?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!