程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> JAVA編程 >> JAVA編程入門知識 >> JDBC Driver寫法!

JDBC Driver寫法!

編輯:JAVA編程入門知識

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
  
 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved