为何没有显示运行,下面是源代码
package com.fk.jdbc;
import java.sql.DriverManger;
public class demo {
public static void main(String[] args) throws ClassNotFoundException {
Class.forName("com.mysql.jc.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/db1";
String username = "root";
String password = "1234";
Connection conn = DriverManger.getConnection(url,username,password);
String sql = "update emp1 set salary = 5000 where id = 1";
Statement stat = conn.createStatement();
int count = stat.excuteUpdate(sql);
System.out.println(count);
stat.close();
conn.close();
}
}