0.5.1 Download URL: http://sourceforge" />
龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > JAVA开发 >

JDBC Driver写法!

时间:2009-12-23 15:42来源:未知 作者:admin 点击:
分享到:
Microsoft SQL Server series (6.5, 7.x and 2000) and Sybase 10 JDBC Name: jTDS URL: http://jtds.sourceforge.net/ Version: ?XML:namespace prefix = st1 ns = "urn:schemas-microsoft-com:Office:smarttags" /> 0.5.1 Download URL: http://sourceforge

Microsoft SQL Server series (6.5, 7.x and 2000) and Sybase 10
  
  JDBC Name: jTDS
  URL: http://jtds.sourceforge.net/
  Version: <?XML:namespace prefix = st1 ns = "urn:schemas-microsoft-com:Office:smarttags" />0.5.1
  Download URL: http://sourceforge.net/project/showfiles.PHP?group_id=33291
  
  语法:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Class.forName("net.sourceforge.jtds.jdbc.Driver ");
  Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://host:port/database","user","password");
  or
  Connection con = DriverManager.getConnection("jdbc:jtds:sybase://host:port/database","user","password");


  
  mysql
  
  JDBC Name: Connector/J 3.0
  URL: http://www.mysql.com/
  Version: 3.0.8-stable
  Download URL: http://www.mysql.com/downloads/api-jdbc-stable.Html
  
  语法:

Class.forName("com.mysql.jdbc.Driver");
  Connection con = DriverManager.getConnection("jdbc:mysql://host:port/database","user","password");


  
  Oracle
  
  JDBC Name: Connector/J 3.0
  URL: http://otn.oracle.com/
  Version: 3.0.8-stable
  Download URL: http://otn.oracle.com/software/tech/Java/sqlj_jdbc/content.html
  
  

精彩图集

赞助商链接