2 1. 各种数据库的 JDBC连接大全
3 2. Microsoft SQL Server series ( 6.5, 7. x and 2000) and Sybase 10
4 3.
5 4. JDBC Name: jTDS
6 5. URL: http :/ /jtds. sourceforge. net /
7 6. Version: 0.5. 1
8 7. Download URL: http :/ /sourceforge. net /project /showfiles. php?group_id = 33291
9 8.
10 9. 语法:
11 10. Class. forName( "net.sourceforge.jtds.jdbc.Driver ");
12 11. Connection con = DriverManager. getConnection( "jdbc:jtds:sqlserver://host:port/database", "user", "password");
13 12. or
14 13. Connection con = DriverManager. getConnection( "jdbc:jtds:sybase://host:port/database", "user", "password");
15 14.
16 15. MySQL
17 16.
18 17. JDBC Name: Connector / J 3.0
19 18. URL: http :/ /www. mysql. com /
20 19. Version: 3.0. 8 -stable
21 20. Download URL: http :/ /www. mysql. com /downloads /api -jdbc -stable. html
22 21.
23 22. 语法:
24 23. Download URL: http :/ /www. mysql. com /downloads /api -jdbc -stable. html
25 24.
26 25. 语法:
27 26. Class. forName( "com.mysql.jdbc.Driver");
28 27. Connection con = DriverManager. getConnection( "jdbc:mysql://host:port/database", "user", "password");
29 28.
30 29. Oracle
31 30.
32 31. JDBC Name: Connector / J 3.0
33 32. URL: http :/ /otn. oracle. com /
34 33. Version: 3.0. 8 -stable
35 34. Download URL: http :/ /otn. oracle. com /software /tech /java /sqlj_jdbc /content. html
36 35.
37 36. 语法:
38 37. Download URL: http :/ /otn. oracle.