起原:wanchao2001的 Blog 作者:wanchao2001的 Blog
">
//SQL_Server:
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test";
String user = "sa";
String password = "";
//Oracle:
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@localhost:1521:wanchao";
String user = "scott";
String password = "tiger";
//mysql
String driver="com.mysql.jdbc.Driver";
String url="jdbc:mysql://localhost:3306/chinabank?useUnicode=true&characterEncoding=GBK";
String user="root";
String pas搜刮引擎优化rd="root";
>con = DriverManager.getConnection(url,user,password);
版权声明:
原创作品,容许转载,转载时请务必以超链接方式标明文章 原始来因 、作者信息和本声明。不然将穷究法律责任。