面是创建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对象提供了int executeUpdate(String sqlStatement)方法,用于实现对数据库中数据的添加、删除和更新操作。