- 浏览: 56891 次
- 性别:
- 来自: 北京
最新评论
-
w374541548:
终于找到想要的结果了
从页面接收json格式的数据,在java类里面进行解析
文章列表
错误: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 'not null, add column username varchar not null' at line 1
原因:没有给varchar设定大小
1、java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
at com.mysql.jdbc.Statement.checkForDml(Statement.java:298)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:950)
错误原因: executeUpdate和executeQuery看看sql的执行语句,是查询还是更新