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