It's not a secret anymore!
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
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: 63839

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

I've moved this one to the JDBC forum.

[Asking smart questions] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The Security FAQ links to two articles on SQL injection.
I agree. Here's the link:
subject: sql injection
It's not a secret anymore!