SQL Server com.microsoft.jdbc.sqlserver.SQLServerDriver jdbc:microsoft:sqlserver://localhost:1433;databasename=dbname ? Oracle oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@localhost:1521:dbname MySQL com.mysql.jdbc.Driver jdbc:mysql:/
sql server
com.microsoft.jdbc.sqlserver.sqlserverdriver
jdbc:microsoft:sqlserver://localhost:1433;databasename=dbname
?
Oracle
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@localhost:1521:dbname
MySQL
com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/dbname
?
MS SQLServer
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:sqlserver:localhost:1433;DatabaseName=dbname
?
Sybase
Shop7z商城系统时尚版支持支付宝、微信支付等多种常用接口,电脑版与手机版与APP无缝结合数据一体!支持图片批量上传,一次性可上传任意张图片,支持多种在线支付接口,如支付宝、网银在线、财付通等接口,支持多级商品分类划分功能,可以方便的划分各商品类别的上下级关系,支持新订单邮件自动通知功能,支持单商品多分类展示功能,订单方面设计完美,如支持订单模糊查询、订单状态的编辑及打印等功能,灵活的导航可以设
691
com.p6spy.engine.spy.P6SpyDriver
jdbc:sybase:Tds:localhost:5000/dbname?charset=cp936&jconnect_version=5&language=us_english
?
ODBC-JDBC桥
sun.jdbc.odbc.JdbcOdbcDriver
jdbc:odbc:ds_name
?
一、JDBC连接DB2
Java代码
?

Class.forName("Com.ibm.db2.jdbc.net.DB2Driver");
String url="jdbc:db2://dburl:port/DBname"
cn = DriverManager.getConnection( url, sUsr, sPwd );
Java代码
?

Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" ); cn = DriverManager.getConnection( "jdbc:microsoft:sqlserver://DBServerIP:1433;databaseName=master", sUsr, sPwd );
Java代码
?

Class.forName( "com.sybase.jdbc2.jdbc.SybDriver" ); cn = DriverManager.getConnection( "jdbc:sybase:Tds:DBServerIP:2638", sUsr, sPwd );
Java代码
?

Class.forName( "org.gjt.mm.mysql.Driver" ); cn = DriverManager.getConnection( "jdbc:mysql://DBServerIP:3306/myDatabaseName", sUsr, sPwd );
Java代码
?

Class.forName( "org.postgresql.Driver" ); cn = DriverManager.getConnection( "jdbc:postgresql://DBServerIP/myDatabaseName", sUsr, sPwd );
Java代码
?

Class.forName( "oracle.jdbc.driver.OracleDriver" ); cn = DriverManager.getConnection( "jdbc:oracle:thin:@MyDbComputerNameOrIP:1521:ORCL", sUsr, sPwd );
Java代码
?

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号