下载地址:
下载地址1(本站为飞网专业下载站,域名:down.cfei.net)
资源简介:
import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class JDBCdemo {private final static String DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";private final static String URL = "jdbc:sqlserver://localhost:1433;DatabaseName=Test";private static Connection conn = null;//获取连接对象public static Connection getConn() {if (conn == null) {try {Class.forName(DRIVER);conn = DriverManager.getConnection(URL,"sa","sasa");return conn;} catch (ClassNotFoundException e)
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。