Java – how to escape special characters used in SQL queries?
•
Java
Is there a Java library to escape special characters from strings to be inserted into SQL queries
I've been writing code to avoid all kinds of things, but I've been looking for some new problems Therefore, a library that handles all or most of the possibilities will be very convenient
Editor: I'm using MySQL (if there's any difference)
Solution
Um... JDBC Pass strings as parameters and do not append them to the query string
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码