今天图老师小编给大家展示的是JDBC Driver写法!,精心挑选的内容希望大家多多支持、多多分享,喜欢就赶紧get哦!
【 tulaoshi.com - 编程语言 】
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" />
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:
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:
Download URL: http://otn.oracle.com/software/tech/Java/sqlj_jdbc/content.html
来源:http://www.tulaoshi.com/n/20160219/1607110.html
看过《JDBC Driver写法!》的人还看了以下文章 更多>>