package ml.css.iterater.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
public class jdbc {
public static void main(String[] args) throws Exception {
Class.forName("com.mysql.jdbc.Driver");
Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/emp","root","jbw5p2");
String sql="update emp set SAL =801.10 where EMPNO= 7369";
Statement statement=conn.createStatement();
int count=statement.executeUpdate(sql);
System.out.println(count);
conn.close();
statement.close();
}
}