题目内容

Statement对象的executeQuery()用于执行select语句,并返回一个永远不能为null的ResultSet实例。( )

A. 对
B. 错

查看答案
更多问题

Statement对象的executeUpdate()用于执行insert、update或delete语句,并返回一个永远不能为null的ResultSet实例。( )

A. 对
B. 错

可以使用( )对象执行SQL语句“insert into score values(?,?,?)”

A. Statement
B. PreparedStatement
CallableStatement

可以使用( )对象执行SQL语句“select * from score where stuID=?”

A. Statement
B. PreparedStatement
CallableStatement

如果需要执行的是SQL中的select语句,则必须使用Statement对象的哪个方法?

A. execute()
B. executeUpdate()
C. executeQuerty()
D. exe()

答案查题题库