• 2022-06-15
    要删除book表中书籍(bookName)是”java”的记录,横线上应填写的正确代码的是 ( )
    String sql=”delete from book where bookName=?”;
    PreparedStatement pst=con.preparedStatement(sql);
    ______________________________
    pst.execute();
    A: pst.setString(1,”java”);
    B: pst.setString(0,”java”);
    C: pst.setInt(0,”java”);
    D: 以上选项都不正确
  • 举一反三