String registSQL = "INSERT INTO manager ( username , password , phone ) VALUES ( '112' , '121' , '121' )";
Connection connection = DbConnection.getConnection();
QueryRunner runner = new QueryRunner();
int count = runner.update(connection, registSQL);
connection.close();
报错信息
Exception in thread "main" java.sql.SQLException: Wrong number of parameters: expected 3, was given 0 Query: INSERT INTO manager ( username , password , phone ) VALUES ( '112' , '121' , '121' ) Parameters: []
无语至极,只能用?代替值