错误异常如下:
java.sql.SQLException: com.microsoft.sqlserver.jdbc.SQLServerException: 无法识别元数据的表 insert users(username, password) values(?,?)。 Query: insert users(username, password) values(?,?) Parameters: [HuJian, 07013638]
at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490)
at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:403)
at no10.QueryRunnerTest.operate(QueryRunnerTest.java:32)
at no10.QueryRunnerTest.main(QueryRunnerTest.java:45)
java.sql.SQLException: com.microsoft.sqlserver.jdbc.SQLServerException: 无法识别元数据的表 insert users(username, password) values(?,?)。 Query: insert users(username, password) values(?,?) Parameters: [HuJian, 07013638]
at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490)
at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:403)
at no10.QueryRunnerTest.operate(QueryRunnerTest.java:32)
at no10.QueryRunnerTest.main(QueryRunnerTest.java:45)
而<无法识别元数据表>是jdbc报出来的.是因为你的sql有误insert 后面缺少into