package com.cqust;
import com.mysql.jdbc.Driver;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
String sql = "insert into t_user2 (user2_name) values("wangwu"),("lisi")"; int num = statement.executeUpdate(sql); //6.关闭资源 if (statement != null){ statement.close(); } if (connection != null){ connection.close(); } System.out.println(num);
}
}