This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Pie
Posts: 20511
54
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
Sheriff
Pie
Posts: 2935
121
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
Marshal
Posts: 34179
340
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic