eclipse 连接mysql执行插入语句时报错,但是把语句直接在mysql里面执行的时候没错.
具体的语句是“INSERTpyk.selectlist(id,courseID,courseName,stuID,stuName,stuProfession,stuSco...
具体的语句是“INSERT pyk.selectlist (id, courseID, courseName, stuID, stuName, stuProfession, stuScore) values ('xx', 'xx', 'xx', 'xx', 'xx', 'xx', '');”
eclipse报错是“
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'è????—????–°??????è????§' at line 1
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source) 展开
eclipse报错是“
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'è????—????–°??????è????§' at line 1
at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source) 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询