驅動器:
* 1. Oracle: oracle.jdbc.driver.OracleDriver
* 2. Access: sun.jdbc.odbc.JdbcOdbcDriver
* 3. SQL Server: com.microsoft.jdbc.sqlserver.SQLServerDriver
* 4. DB2: com.ibm.db2.jdbc.app.DB2Driver
* 5. Informix: com.informix.jdbc.IfxDriver
* 6. Sybase: com.sybase.jdbc.SybDriver
* 7. MySQL: com.mysql.jdbc.Driver
數據庫類型
* 1. Oracle url示例:
"jdbc:oracle:thin:@localhost:1521:orcl"
* 2. Access url示例:
"jdbc:odbc:Access"
* 3. SQLServer url示例:
"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs"
* 4. DB2 url示例:
"jdbc:db2://localhost:5000/sample"
* 5. Informix url示例:
"jdbc:informix-sqli://123.45.67.89:1533/testDB:INFORMIXSERVER=myserver"
* 6. Sybase url示例:
"jdbc:sybase:Tds:localhost:5007/tsdata"
* 7. MySQL url示例:
"jdbc:mysql://localhost/test?user=root&password=root&useUnicode=true&characterEncoding=utf-8"
連接各種數據庫驅動
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
should not point at files within the project directory
AinUser
2020-06-11 14:38:45
linux下編譯QOCI數據庫驅動,基於QT4.7.4
码农A
2020-06-08 11:39:39
SpringMVC-整合連接池
Jing-Kathy
2020-03-04 23:02:17
java連接MySQL數據庫
Jerry_Dui
2020-02-23 20:17:56
com.mysql.cj.jdbc.driver與com.mysql.jdbc.driver'
试行
2019-06-16 03:18:37
各種數據庫的jdbc驅動下載及連接方式
Timo和小蘑菇
2018-08-21 23:46:30