不同的数据库的URL不同。大致如下:1. Oracle url示例:"jdbc:oracle:thin:@localhost:1521:orcl"2. Access url示例:"jdbc:odbc:HANFENG"3. SQL Server 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/softforum?user=soft&password=soft1234&useUnicode=true&characterEncoding=8859_1"8. PostgreSQL url示例:"jdbc:postgresql://localhost/soft" 转自http://zhidao.baidu.com/link?url=b7SBi-h66h3LZdnyfjEH3-7uIlJjW4NkFtDK53gXas76-7n863IC1Do3uZo9XFoE6DSp6cDmmhQZMSRZFb2J2q
时间: 2024-10-15 09:09:36