Error!: SQLSTATE[42000]: Syntax error or access violation: 1064 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 best ornament is nakedness

这个报错的原因刚开始我以为是数据版本的问题

其实仔细研究发现不是数据库的问题

是写的sql语句不严谨,插入的数据中带特殊符号比如说‘ ,’‘“”等符号,sql语句的引号起了冲突。

解决办法:修改sql语句,如果不行 换个,mysql版本试试