Answer the question
In order to leave comments, you need to log in
How to escape special characters in a string before inserting into a query?
Hello,
I wrote a parser that saves data to the database. But it happens that special characters come, how can they be screened?
Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
You probably form an insert query by concatenating a string?
Use PreparedStatement
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question