题目内容

SQL语句为“select * from employee”,则需要选择使用Statement对象的executeUpdate()方法发送该SQL语句。( )

A. 对
B. 错

查看答案
更多问题

SQL语句为“insert into users values('admin','123456')”,则需要选择使用Statement对象的executeQuery()方法发送该SQL语句。( )

A. 对
B. 错

Statement对象可以用来发送带参数的预编译的SQL语句。( )

A. 对
B. 错

SQL语句为“update employee set UserName='张三',Sex='男' where EmployeeID='000001'”,则需要选择使用Statement对象的executeUpdate()方法发送该SQL语句。( )

A. 对
B. 错

PreparedStatement只能用来执行静态SQL语句,并返回执行结果。( )

A. 对
B. 错

答案查题题库