关于数据库连接的程序,以下哪个语句的注释是错误的( ) Class.forName(“com.mysql.jdbc.Driver”); //指定MySQL JDBC驱动程序 String url=” jdbc:mysql://localhost:3306/student”; //指定驱动程序与数据源的连接 db.executeUpdate(sql); //用于返回查询结果 while(rs.next())//用于遍历查询结果中的记录
关于数据库连接的程序,以下哪个语句的注释是错误的( )
Class.forName(“com.mysql.jdbc.Driver”); //指定MySQL JDBC驱动程序
String url=” jdbc:mysql://localhost:3306/student”; //指定驱动程序与数据源的连接
db.executeUpdate(sql); //用于返回查询结果
while(rs.next())//用于遍历查询结果中的记录