This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Groovy and the fly likes PreparedStatement with sql.eachRow() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Groovy
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

According to the API, you can't.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PreparedStatement with sql.eachRow()