title: How to escape special characters used in SQL query?
body: <p>Is there a Java library for escaping special characters from a string that is going to be inserted into an SQL query.</p>
  
  <p>I keep writing code to escape various things, but I keep finding some new issue trips me up. So a library that takes care of all or most of the possibilities would be very handy.</p>
  
  <p>EDIT: I am using MySQL (if that makes any difference).</p>