This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Parameterized sql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Parameterized sql" Watch "Parameterized sql" New topic
Author

Parameterized sql

Benjamin Samuel
Ranch Hand

Joined: Dec 15, 2006
Posts: 33
I have a parameterized sql of this form:



let me know what is the difference between using "(?,?)" and "(:1, :2)" in the above query.
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

read about PreparedStatement, this will answer your query. if stiil you have any confusion then lot of ranchers around to solve your problem

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameterized sql