小编cha*_*ran的帖子

如何在MySQL中插入特殊字符?

我正在insert从shell脚本执行查询,该脚本从多个文件中读取数据.要插入的一些数据包含'在文本中,MySQL不断给出错误

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Development & Empowerment, Youth Affairs                 
','
Himachal Pradesh                    ' at line 1
Run Code Online (Sandbox Code Playgroud)

这是实际的文字:Women's Development & Empowerment, Youth Affairs.

mysql

9
推荐指数
1
解决办法
7万
查看次数

标签 统计

mysql ×1