• 2022-06-09
    以下语句可以创建Statement接口对象的是
  • Statement sm = conn. createStatement(); (注:conn为数据连接对象)

    内容

    • 0

      要在Connection对象conn上创建Statement对象,可以使用________: Statement statement = Connection.createStatement();|Statement statement = conn.createStatement();|Statement statement = conn.statement();|Statement statement = connection.create();

    • 1

      (4-3)关于Statement接口的作用,下列说法正确的是()。 A: Statement是预编译的,效率高 B: 可以绑定占位符参数,防止SQL注入问题 C: Statement中executeQuery()的作用是在本地数据库服务器中执行SELECT语句。 D: 利用Connection对象的createStatement方法创建Statement对象

    • 2

      可以调用Statement 接口的成员方法来执行SQL 语句,其中,______ 方法用来执行SQL 查询语句,查询结果为______ 对象

    • 3

      Statement接口用于执行动态的SQL语句,并返回一个结果对象。

    • 4

      JDBC中Statement接口可以执行SQL语句实现数据操作;如果要执行SQL查询语句,需要调用以下( )方法