• 2022-06-05 问题

    下面是创建Statement接口并执行executeUpdate方法的代码片段: conn=DriverManager.getConnection(“jdbc.odbc:book”,””,””); stmt=conn.createStatement(); String strsql=”insert into book values(‘TP003’,’ASP.NET’,’李’,’清华出版社’,35)”; n=stmt.executeUpdate(strsql); 代码执行后n的值为

    下面是创建Statement接口并执行executeUpdate方法的代码片段: conn=DriverManager.getConnection(“jdbc.odbc:book”,””,””); stmt=conn.createStatement(); String strsql=”insert into book values(‘TP003’,’ASP.NET’,’李’,’清华出版社’,35)”; n=stmt.executeUpdate(strsql); 代码执行后n的值为

  • 2022-06-05 问题

    下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection(“jdbc.odbc:book”,””,””);stmt=conn.createStatement();String strsql=”insert into book values(‘TP003’,’ASP.NET’,’李’,’清华出版社’,35)”;n=stmt.executeUpdate(strsql);代码执行后n的值为( ) A: 1 B: 0 C: -1 D: 一个整数

    下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection(“jdbc.odbc:book”,””,””);stmt=conn.createStatement();String strsql=”insert into book values(‘TP003’,’ASP.NET’,’李’,’清华出版社’,35)”;n=stmt.executeUpdate(strsql);代码执行后n的值为( ) A: 1 B: 0 C: -1 D: 一个整数

  • 2022-06-05 问题

    中国大学MOOC: 下面是创建Statement接口并执行executeUpdate方法的代码片段: conn=DriverManager.getConnection(jdbc:mysql://localhost:3306/demo,,); stmt=conn.createStatement(); String strsql=insert into bookvalues(TP003, Java Web,李,清华出版社,35); n=stmt.executeUpdate(strsql); 代码执行成功后n的值为 ( )。

    中国大学MOOC: 下面是创建Statement接口并执行executeUpdate方法的代码片段: conn=DriverManager.getConnection(jdbc:mysql://localhost:3306/demo,,); stmt=conn.createStatement(); String strsql=insert into bookvalues(TP003, Java Web,李,清华出版社,35); n=stmt.executeUpdate(strsql); 代码执行成功后n的值为 ( )。

  • 2022-06-05 问题

    面是创建Statement接口并执行executeUpdate方法的代码片段:      conn=DriverManager.getConnection("jdbc:odbc:book","","");     stmt=conn.createStatement();  String strsql="insert into book values(’TP003’, ’ASP.NET’,’李’,’清华出版社’,35)";  n=stmt.executeUpdate(strsql);   代码执行成功后n的值为()。 A:  1 B:  0 C:  -1 D:  一个整数

    面是创建Statement接口并执行executeUpdate方法的代码片段:      conn=DriverManager.getConnection("jdbc:odbc:book","","");     stmt=conn.createStatement();  String strsql="insert into book values(’TP003’, ’ASP.NET’,’李’,’清华出版社’,35)";  n=stmt.executeUpdate(strsql);   代码执行成功后n的值为()。 A:  1 B:  0 C:  -1 D:  一个整数

  • 2022-06-05 问题

    stmt为Statement对象,执行String sqlStatement = "delete from book where bid='tp1001' ";语句后,删除数据库表的记录需要执行stmt.executeUpdate ( )语句

    stmt为Statement对象,执行String sqlStatement = "delete from book where bid='tp1001' ";语句后,删除数据库表的记录需要执行stmt.executeUpdate ( )语句

  • 2022-06-05 问题

    下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection("jdbc:mysql:///book","root","123456"); stmt=conn.createStatement(); String strsql="insert into book values('TP003', 'ASP.NET','李','清华出版社',35)"; n=stmt.executeUpdate(strsql); 代码执行成功后n的值为 ( )。 A: 1 B: 0 C: -1 D: 一个整数

    下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection("jdbc:mysql:///book","root","123456"); stmt=conn.createStatement(); String strsql="insert into book values('TP003', 'ASP.NET','李','清华出版社',35)"; n=stmt.executeUpdate(strsql); 代码执行成功后n的值为 ( )。 A: 1 B: 0 C: -1 D: 一个整数

  • 2022-06-05 问题

    要在Statement对象stmt上执行SELECT语句“select*fromAddress”,可以使用________。 A: stmt.execute("select*fromAddress"); B: stmt.executeQuery("select*fromAddress"); C: stmt.executeUpdate("select*fromAddress"); D: stmt.query("select*fromAddress");

    要在Statement对象stmt上执行SELECT语句“select*fromAddress”,可以使用________。 A: stmt.execute("select*fromAddress"); B: stmt.executeQuery("select*fromAddress"); C: stmt.executeUpdate("select*fromAddress"); D: stmt.query("select*fromAddress");

  • 2022-06-05 问题

    4、下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/database,"root","123");stmt=conn.createStatement();String strsql="insert into book values('TP003', 'ASP.NET','李','清华出版社',35)";n=stmt.executeUpdate(strsql);代码执行成功后n的值为() 。 A: 1 B: 0 C: -1 D: 一个整数

    4、下面是创建Statement接口并执行executeUpdate方法的代码片段:conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/database,"root","123");stmt=conn.createStatement();String strsql="insert into book values('TP003', 'ASP.NET','李','清华出版社',35)";n=stmt.executeUpdate(strsql);代码执行成功后n的值为() 。 A: 1 B: 0 C: -1 D: 一个整数

  • 2022-06-05 问题

    要执行str="select * from customer"语句,假设Statement对象stmt,执行SQL语句的代码哪个正确? A: stmt.executeQuery(str) B: stmt.executeUpdate(str) C: stmt.executeSelect(str) D: stmt.executeDelete(str)

    要执行str="select * from customer"语句,假设Statement对象stmt,执行SQL语句的代码哪个正确? A: stmt.executeQuery(str) B: stmt.executeUpdate(str) C: stmt.executeSelect(str) D: stmt.executeDelete(str)

  • 2022-06-14 问题

    Statement接口的对象变量是stmt,Connection接口的对象变量名是conn,对数据库中记录进行修改操作正确的是 A: conn.executeUpdate(String sql) B: conn.executeQuery(String sql) C: stmt.executeQuery(String sql) D: stmt.executeUpdate(String sql)

    Statement接口的对象变量是stmt,Connection接口的对象变量名是conn,对数据库中记录进行修改操作正确的是 A: conn.executeUpdate(String sql) B: conn.executeQuery(String sql) C: stmt.executeQuery(String sql) D: stmt.executeUpdate(String sql)

  • 1 2 3 4 5 6 7 8 9 10