• 2022-06-11
    已知,存在 QueryRunner对象 runner , SQL语句: String sql = "select * from user where id=?"; 下面操作中,能实现查询指定记录的选项是()
    A: User user=(User)runner.query(sql, new BeanListHandler(User.class), new Object[]{id});
    B: User user=(User)runner.query(sql, new BeanHandler(User.class));
    C: User user=(User)runner.query(sql, new BeanListHandler(User.class), id);
    D: User user=(User)runner.query(sql, new BeanHandler(User.class), new Object[]{id});
  • 举一反三