11.20
//注册驱动
Class.forName("com.nysql.jdbc.Driver");
//获取链接对象
String url="jdba:mysql://127.0.0.3306/db1?useSSL=false";
String username ="root";
String passwprd ="1234";
Connection conn =DriverManager.getConnection(url,username,password);
//定义sql
String sql="update account set money =2000 shere id=
//获取sql执行对象
Statement stmt =conn.createStatement();
//执行sql
int count =stmt.executeUpdate(sql);