单选题:要通过可滚动的结果集更新数据,以下正确的是
要通过可滚动的结果集更新数据,以下正确的是 @[C](2)
A. pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY)
B. pst=con.prepareStatement(sql, Resu ltSet.TYPE_SCROLL_SENSITIVE)
C. pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE)
D. pst=con.prepareStatement(sql, ResultSet.CONCUR_UPDATABLE)
A.pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY)
B.pst=con.prepareStatement(sql, Resu ltSet.TYPE_SCROLL_SENSITIVE)
C.pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE)
D.pst=con.prepareStatement(sql, ResultSet.CONCUR_UPDATABLE)
答案:C
A. pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY)
B. pst=con.prepareStatement(sql, Resu ltSet.TYPE_SCROLL_SENSITIVE)
C. pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE)
D. pst=con.prepareStatement(sql, ResultSet.CONCUR_UPDATABLE)
A.pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY)
B.pst=con.prepareStatement(sql, Resu ltSet.TYPE_SCROLL_SENSITIVE)
C.pst=con.prepareStatement(sql, ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE)
D.pst=con.prepareStatement(sql, ResultSet.CONCUR_UPDATABLE)
答案:C