数据库各种连接方式

1.mysql

driver:com.mysql.jdbc.Driver

url:jdbc:mysql://localhost:3306/myDatabaseName

 

2.oracle

driver:oracle.jdbc.driver.OracleDriver

url:jdbc:oracle:thin:@localhost:1521:ORCL(Oracle8/8i/9i)

url:jdbc:oracle:thin:@localhost:1521:XE(Oracle10g)

 

3.sql server 2000

driver:com.microsoft.jdbc.sqlserver.SQLServerDriver

url:jdbc:microsoft:sqlserver://localhost:1433;databaseName=xxx

 

4.sql server 2005

driver:com.microsoft.sqlserver.jdbc.SQLServerDriver

url:jdbc:sqlserver://localhost:1433;databaseName=xxx

你可能感兴趣的:(数据库)