• Post Reply Bookmark Topic Watch Topic
  • New Topic

prepared statement hashmap

 
matteo rossi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a HTML form with a lot of many fields (string, date, int, double). I send them to a servlet that must execute insert into db table. Which is method faster? I'd like write minimum code lines. prepared statement and hashmap? Can you give me an example?

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65679
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't worry about what's fastest at this point. Do what makes the most sense.
 
matteo rossi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I want write not much code (minimum).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65679
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one is stopping you. Go right ahead.

Then post back with any problems you might have, including the code (be sure to UseCodeTags).
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!