Try using a preparedStatement rather than cobbling together a query statement like that.
See the API and Sun tutorials (a link can be found in the API) for more info.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006