我有'Courses Offered': "Economics,World history: survey,Women's history,Other social science course"}
由于Women's history
,它会出错:
'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 history,Other social science course"}]
我尝试将'
替换为"''
,但无效
答案 0 :(得分:1)
使用ORM或其他方法将数据插入数据库,例如查询参数,而不是字符串连接。
答案 1 :(得分:0)
npm install -g react-native-cli