数据库连接字符串

oracle
    driverClass:oracle.jdbc.driver.OracleDriver
    url:jdbc:oracle:thin:@127.0.0.1:1521:dbname
mysql
    driverClass:com.mysql.jdbc.Driver
DB2
    driverClass:com.ibm.db2.jcc.DB2Driver
    url:jdbc:db2://127.0.0.1:50000/dbname
sybase
    driverClass:com.sybase.jdbc.SybDriver
    url:jdbc:sybase:Tds:localhost:5007/dbname
PostgreSQL
    driverClass:org.postgresql.Driver
    url:jdbc:postgresql://localhost/dbname
Sql Server2000
    driverClass:com.microsoft.jdbc.sqlserver.SQLServerDriver
    url:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=dbname
Sql Server2005
    driverClass:com.microsoft.sqlserver.jdbc.SQLServerDriver
    url:jdbc:sqlserver://localhost:1433; DatabaseName=dbname


数据库连接小工具:http://pan.baidu.com/s/1gdvYq11(from:园长-sqlplus.jar

发表评论