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

JavaÖн«Êý×é¸÷ÔªËØ×÷ΪÊý¾ÝÏî²åÈëµ½Êý¾Ý¿âÖÐ

private PreparedStatement pstmt;
String sql="INSERT INTO TABLE(id,Ãû³Æ,Óû§id,Stbid,MAC,Óû§×´Ì¬,×Ü´ÎÊý,IpµØÖ·,×ÊÁϸüÐÂʱ¼ä) " +
           "VALUES(?,?,?,?,?,?,?,?,?)";
 pstmt=connection.prepareStatement(sql);
 pstmt.setString(1,array[0]);
 pstmt.setString(2, array[1]);
 pstmt.setString(3, array[2]);
 pstmt.setString(4, array[3]);
 pstmt.setString(5, array[4]);  
 pstmt.setString(6, array[5]);
 pstmt.setString(7, array[6]);
 pstmt.setString(8, array[7]);
 pstmt.setString(9, array[8]);
 pstmt.executeUpdate();
                  
 pstmt.close();
 connection.commit();    
ÆäÖÐTABLEÖеĸ÷×ֶεÄÀàÐ;ùΪCharÀàÐÍ¡£


Ïà¹ØÎĵµ£º

java±àÒ뾲̬³£Á¿µÄ»úÖÆ

javaÐéÄâ»ú±àÒë»úÖÆ£¬¾²Ì¬³£Á¿ÔÚ±àÒëºó£¬³ÉΪÁ˳£Á¿£¬¶ø²»ÊÇÔ­ÏȵĴúÂ룬ÀýÈ磺
ÓÐÒ»¸öÀà
Contant.java
ÀïÃæÓÐһЩ¾²Ì¬³£Á¿
public static final String GONGDAN = "gongdan@ceopen.cn";
public static final String ICT = "ictnetwork@ceopen.cn";
È»ºóÔÚ³ÌÐòÖÐÓÐʹÓÃÕâЩ³£Á¿£¬Contant.GONGDAN
ÔÚÄÇЩ³ÌÐò±àÒëºóµÄ ......

´ÓÓïÑÔÉý¼¶ÎªÆ½Ì¨£ºJAVAÀÏÒÓ£¬ÉÐÄÜ·¹·ñ£¿

JavaÔ´ÓÚ1991ÄêµÄÒ»¸ö»ú¶¥ºÐÏîÄ¿£¬²¢ÓÉSunÔÚ1995Äê·¢²¼ÁË1.0°æ±¾£¬µ½½ñÌìËãÏÂÀ´£¬Ò²ÒªÓÐ20ÄêµÄʱ¼äÁË¡£JDK1.3-->JDK1.4-->JDK5ÕâÁ½´Î°æ±¾Éý¼¶£¬Ê¹µÃjavaÓïÑԵõ½Á˼«´óµÄÍêÉÆ£¬µ«´ËºóµÄJDK6ºÍÉÐδÕýʽ·¢²¼µÄJDK7£¬²¢Î´¸øÈËÌ«¶àµÄ¾ªÏ²£¬ÖÁÉÙÎÒÊÇÕâÖָоõ¡£Æäʵ´Ó×î½ü¼¸ÄêJVM¼æÈÝÓïÑԵİٻ¨Æë·Å¾Í¿ÉÒÔ¿´³öÀ´¶ËÄߣºJAVAÔ ......

JAVAµÄ²ÎÊý´«µÝ»úÖÆ

²ÎÊý´«µÝ»úÖÆÖ÷ÒªÓÐÁ½ÖÖ£ºÖµµ÷ÓÃ(call-by-value)£¬ÒýÓõ÷ÓÃ(call-by-reference)¡£
Öµµ÷ÓÃ(call-by-value)£º»á¶ÔʵÔÚ²ÎÊýÇóÖµ£¨Èç¹ûÊDZí´ïʽ£©»ò¿½±´£¨Èç¹ûÊDZäÁ¿£©¡£ÕâЩֵ±»·ÅÔÚÊôÓÚ±»µ÷Óùý³ÌµÄÏìÓ¦ÐÎʽ²ÎÊýµÄÄÚ´æλÖÃÉÏ¡£
ÒýÓõ÷ÓÃ(call-by-reference)£ºÊµÔÚ²ÎÊýµÄµØÖ·×÷ΪÏàÓ¦µÄÐÎʽ²ÎÊýµÄÖµ±»´«µÝ¸ø±»µ÷ÓÃÕß¡£ÔÚ±»µ÷ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ