Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÊý¾Ý¿âÁ¬½Ó£¨JDBC£©·½Ê½ºÍ¼¼ÇÉ


 
JavaÊý¾Ý¿âÁ¬½Ó£¨JDBC£©ÓÉÒ»×éÓà Java ±à³ÌÓïÑÔ±àдµÄÀàºÍ½Ó¿Ú×é³É¡£JDBC Ϊ¹¤¾ß/Êý¾Ý¿â¿ª·¢ÈËÔ±ÌṩÁËÒ»¸ö±ê×¼µÄ API£¬Ê¹ËûÃÇÄܹ»Óô¿Java API À´±àдÊý¾Ý¿âÓ¦ÓóÌÐò¡£È»¶ø¸÷¸ö¿ª·¢É̵Ľӿڲ¢²»ÍêÈ«Ïàͬ£¬ËùÒÔ¿ª·¢»·¾³µÄ±ä»¯»á´øÀ´Ò»¶¨µÄÅäÖñ仯¡£±¾ÎÄÖ÷Òª¼¯ºÏÁ˲»Í¬Êý¾Ý¿âµÄÁ¬½Ó·½Ê½¡£
¡¡¡¡Ò»¡¢Á¬½Ó¸÷ÖÖÊý¾Ý¿â·½Ê½ËÙ²é±í
¡¡¡¡ÏÂÃæÂÞÁÐÁ˸÷ÖÖÊý¾Ý¿âʹÓÃJDBCÁ¬½ÓµÄ·½Ê½£¬¿ÉÒÔ×÷Ϊһ¸öÊÖ²áʹÓá£
¡¡¡¡1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
Class.forName(“oracle.jdbc.driver.OracleDriver“).newInstance();
String url=“jdbc:oracle:thin:@localhost:1521:orcl“; //orclΪÊý¾Ý¿âµÄSID
String user=“test“;
String password=“test“;
Connection conn= DriverManager.getConnection(url,user,password);
¡¡¡¡2¡¢DB2Êý¾Ý¿â
Class.forName(“com.ibm.db2.jdbc.app.DB2Driver “).newInstance();
String url=“jdbc:db2://localhost:5000/sample“; //sampleΪÄãµÄÊý¾Ý¿âÃû
String user=“admin“;
String password=““;
Connection conn= DriverManager.getConnection(url,user,password);
¡¡¡¡3¡¢Sql Server7.0/2000Êý¾Ý¿â
Class.forName(“com.microsoft.jdbc.sqlserver.SQLServerDriver“).newInstance();
String url=“jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=mydb“;
//mydbΪÊý¾Ý¿â
String user=“sa“;
String password=““;
Connection conn= DriverManager.getConnection(url,user,password);
¡¡¡¡4¡¢SybaseÊý¾Ý¿â
Class.forName(“com.sybase.jdbc.SybDriver“).newInstance();
String url =“ jdbc:sybase:Tds:localhost:5007/myDB“;//myDBΪÄãµÄÊý¾Ý¿âÃû
Properties sysProps = System.getProperties();
SysProps.put(“user“,“userid“);
SysProps.put(“password“,“user_password“);
Connection conn= DriverManager.getConnection(url, SysProps);
¡¡5¡¢InformixÊý¾Ý¿â
Class.forName(“com.informix.jdbc.IfxDriver“).newInstance();
String url = “jdbc:informix-sqli://123.45.67.89:1533/myDB:INFORMIXSERVER=myserver;
user=testuser;passwor


Ïà¹ØÎĵµ£º

¼òµ¥µÄwebservices£¨java£©

    ×ª×Ôhttp://www.cnblogs.com/liwp_stephen/archive/2008/08/03/1259385.html£¬·Ç³£¸Ðл×÷ÕߵķÖÏí
 
    ʹÓÃAxis±àдWebService±È½Ï¼òµ¥£¬¾ÍÎÒµÄÀí½â£¬WebServiceµÄʵÏÖ´úÂëºÍ±àдJava´úÂëÆäʵûÓÐʲôÇø±ð£¬Ö÷ÒªÊǽ«ÄÄЩJavaÀà·¢²¼ÎªWebService¡£ÏÂÃæÊÇÒ»¸ö´Ó±àд²âÊÔÀý× ......

[zhuangzai]javaÈÝÆ÷

JavaÈÝÆ÷ÀàѧϰÐĵÃ
ÓÉÓÚÎÒ¶ÔC++±È½ÏÊìϤ£¬ËùÒÔѧϰJavaÓ¦¸ÃÖصãÌå»áJava´øÀ´µÄиÅÄî¡£±¾ÎÄ»ù±¾ÉÏÊÇJava±ê×¼¿âÖм¯ºÏ¿ò¼ÜµÄ»ù±¾¸ÅÄûÓÐÀý×Ó¡£Ð´±¾ÎĵÄÄ¿µÄÔÚÓÚ·½±ãÎҺܳ¤Ê±¼äºóÈôÊÇÍüÁËÕâЩ¶«Î÷¿ÉÒÔͨ¹ýÕâƬÎÄÕÂѸËÙ»ØÒäÆðÀ´¡£
1. ½Ó¿Ú
Õû¸öJavaÈÝÆ÷ÀàµÄ»ù´¡ÊÇÈÝÆ÷½Ó¿Ú£¨ÀýÈçCollection£¬MapµÈ½Ó¿Ú£©£¬¶ø²»ÊÇÀà ......

java»ù´¡

JSPµÄ9¸öÄÚÖöÔÏóÊÇ£ºout¡¢request¡¢response¡¢page¡¢pageContext¡¢session¡¢application¡¢exception¡¢config¡£Òª×¢Òâ¶ÔÏóÃûµÄ´óСд
 
 
What results from attempting to compile and run the following code? public class Ternary{ public static void main(String args[]){ int a = 5; System.out.printl ......

Java»·¾³±äÁ¿ÅäÖÃ

 ×°ÁËwin7ÒÔºóÖØÐÂÅäÖÃÁËjavaµÄ»·¾³±äÁ¿¡£
Ê×ÏÈ£¬JDKºÍJREµÄÇø±ð£ºjdk£¨java development toolkit£© jre£¨java run environment£©£¬Ç°Õß¾ÍÏñÊǸöjavaµÄ±àÒëÆ÷£¬ºóÕßÌṩһ¸öÔËÐл·¾³£¬javaÐéÄâ»ú°É¡£Ò»°ãÖ»ÓÃ×°jdk¾ÍÐÐÁË£¬ÀïÃæ×Ô¶¯»áÓиöjre¡£
ÎҵĹý³Ì£º
1. ÏȽâѹEclipse£¬ÔËÐÐÐèÒªÐéÄâ»ú
2. °²×°jre6£¬²»ÓÃÈκΠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ