PreparedStatementps = conn.prepareStatement("insert into user values (?,?)");
ps.setObject(1, "zhangsan");
ps.setObject(2,"123");
ps.executeUpdate();
PreparedStatementps = conn.prepareStatement("insert into user values (?,?)");
ps.setString(1, "zhangsan");
ps.setString(2,"123");
ps.executeUpdate();