The method of not escaping SQL special characters

Add \ before special characters 

For example: original SQL: update tableA set title='On the ${process} and its impact of the protracted war' where id=6;

SQL after escaping: update tableA set title='On the \$\{process\} and impact of the protracted war' where id=6;

Guess you like

Origin blog.csdn.net/dd2016124/article/details/130888707