Java – how to escape special characters used in SQL queries?

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
分享
二维码
< <上一篇
下一篇>>