JDBC中的PreparedStatement 相比Statement 的好处
第1题:
JDBC提供3个接口来实现SQL语句的发送,其中执行简单不带参数SQL语句的是()。
A.DriverStatement类
B.PreparedStatement类
C.CallableStatement类
D.Statement类
第2题:
下列选项中,关于Statement描述错误的是()
A.Statement是用来执行SQL语句的
B.Statement是PreparedStatement的子接口
C.获取Statement实现需要使用Connection的createStatement()方法
D.PreparedStatement能使用参数占位符,而Statement不行
第3题:
JDBC提供3个接口来实现SQL语句的发送,其中执行简单不带参数SQL语句的是()。
A.Statement类
B.PreparedStatement类
C.CallableStatement类
D.DriverStatement类
第4题:
1、为什么在编程中推荐使用PreparedStatement代替Statement?
第5题:
3.下列选项中,关于Statement描述错误的是() A: Statement是用来执行SQL语句的 B: Statement是PreparedStatement的子接口 C: 获取Statement实现需要使用Connection的createStatement()方法 D: PreparedStatement能使用参数占位符,而Statement不行
A.A B C D
B.A B C D
C.A B C D
D.A B C D