题目内容

若要调用存储过程,则应使用的语句对象是()。To call a stored procedure, the statement object we should use is ().

A. Statement
B. CallableStatement
C. PreparedStatement
D. ProcedureStatement

查看答案
更多问题

executeUpdate()方法的返回值类型是()。The return value type of the executeupdate() method is().

A. int
B. ResultSet
C. void
D. String

调用executeQuery()方法后将返回一个结果集,此时游标指向()。After calling the executeQuery () method, a result set will be returned, and the cursor points to ( ).

A. 最后一条记录the last record
B. 第一条记录之后after the first record
C. 第一条记录the first record
D. 第一条记录之前before the first record.、

JDBC中,用于表示数据库连接对象的是()。In JDBC, the object used to represent a database connection is ().

A. Connection
B. DBConnection
C. DataBaseConnection
D. Conn

以下哪个方法可以获取数据库表中第1列的值?()Which of the following methods can get the value of the first column in the database table?( )

A. rs.fetchInt(1)
B. rs.fetchInt(0)
C. rs.getInt(1)
D. rs.getInt(0)

答案查题题库