Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String url = "jdbc:sqlserver://localhost:3306;DataBaseName=dbname";// dbname为数据库名 String dlname = "sa"; String dlpass = "12345678"; Connection conn = DriverManager.getConnection(url, dlname, dlpass); Statement statement = conn.createStatement();
by: 发表于:2017-12-29 10:50:49 顶(0) | 踩(0) 回复
??
回复评论