File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes sql injection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "sql injection" Watch "sql injection" New topic

sql injection

fang eve

Joined: Jun 22, 2006
Posts: 26
how to prevent sql injection from my application? i read about 1 site saying using prepared statement. Any other way to do it?
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
validate all your input for correctness.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63062

fang, please take the time to choose appropriate forums for your posts.

I've moved this one to the JDBC forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
The Security FAQ links to two articles on SQL injection.
I agree. Here's the link:
subject: sql injection
jQuery in Action, 3rd edition