IntelliJ Java IDE
The moose likes Groovy and the fly likes PreparedStatement with sql.eachRow() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "PreparedStatement with sql.eachRow()" Watch "PreparedStatement with sql.eachRow()" New topic
Author

PreparedStatement with sql.eachRow()

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Following is a code snippet of current implementation:


We want to use PreparedStatement to prevent SQL injection. How to use PreparedStatement with sql.eachRow()?


My blood is tested +ve for Java.
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

According to the API, you can't.


My Blog | DZone Articles
 
 
subject: PreparedStatement with sql.eachRow()
 
Threads others viewed
error of missing values
Update query
storing date in database
inserting string values with an apostrophe
Storing special characters(') into oracle
IntelliJ Java IDE