最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
sqlserver,oracle,mysql数据库的直连的参数
时间:2022-07-02 18:17:50 编辑:袖梨 来源:一聚教程网
//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 passeord="root";
Class.forName(driver);
con = DriverManager.getConnection(url,user,password);
相关文章
- 逃离鸭科夫小狗具体作用介绍说明 11-05
- 红色的炼金术士店铺自动上货技巧 11-05
- 绝对魔权第三张图口令任务完成方法 11-05
- 洛克王国世界家园舒适度怎么提升-家园舒适度提升攻略 11-05
- 逃离鸭科夫stg77获取位置介绍说明 11-05
- 绯红编年史挑战模式赤红潜行者攻略 11-05