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

javaÖÐʹÓÃsqliteÊý¾Ý¿â

sqliteÊý¾Ý¿âµÚÈý·½javaÀ©Õ¹°üÏÂÔصØÖ·£ºhttp://www.zentus.com/sqlitejdbc/
ÓÐ2¸ö°ü£¬Ò»¸öÊÇnested£¨Ç¶ÈëʽµÄ£©£¬Ò»¸öÊÇnative(±¾µØµÄ)¡£
Çø±ðÔÚÓÚ:nested ²»ÐèÒª¶îÍâµÄdllÎļþ£¬µ«ÊÇËÙ¶ÈÂý¡£nativeÐèÒªÒ»¸ö¶îÍâµÄdllÎļþ£¬ËٶȺܿ졣
 1.ʹÓÃnested°ü£ºsqlitejdbc-v037-nested.jar
java´úÂ룺
java ´úÂë
package test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class Test {
     public static void main(String[] args) throws Exception {
       System.setProperty("java.library.path", "C:/TDDOWNLOAD/SQL");   
           
         Class.forName("org.sqlite.JDBC");   
         Connection conn = DriverManager.getConnection("jdbc:sqlite:e:/testdb.db");   
         //½¨Á¢ÊÂÎñ»úÖÆ,½ûÖ¹×Ô¶¯Ìá½»£¬ÉèÖûعöµã   
         conn.setAutoCommit(false);   
            
         Statement stat = conn.createStatement();   
         stat.executeUpdate("create table people1 (name, occupation);");   
         stat.executeUpdate("insert into people1 values ('Gandhi', 'politics');");   
         stat.executeUpdate("insert into people1 values ('Turing', 'computers');");   
         stat.executeUpdate("insert into people1 values ('Wittgenstein', 'smartypants');");   
         conn.commit(); &n


Ïà¹ØÎĵµ£º

ÓÉJava toy programme µÃ³öµÄ¾­Ñé¼°½Ìѵ

ѧϰJava´ó¸ÅÒ»¸öÔÂÁË£¬ÓÉÓÚÒÔÇ°ÓÐc/c++»ù´¡£¬ËùÒÔÔÚJ2SE²¿·ÖµÄѧϰÊDZȽϿìµÄ£¬½ñÌìÔÚÂÛ̳¿´µ½Ò»¸öÍøÓѵÄÇóÖúÌû£¬Òª½«Ó²ÅÌÉÏÁ½¸öÎļþºÏ²¢ÎªÒ»¸ö²¢É¾³ýÔ­Îļþ£¬ÓÚÊDZãдÁ˲âÊÔ³ÌÐò¡£ºóÀ´ÔÚɾ³ýÎļþʱ£¬ÓÉÓÚûÓаѶµ½ÎļþÉϵÄÊä³öÁ÷¹Ø±Õ£¬µ¼ÖÂÔõôҲÎÞ·¨É¾³ý¡£¶øÇÒÒ»Ö±²é²»³öÔ­Òò£¬ºóÀ´ÒÔΪÊÇdelete·½·¨Ö»ÄÜɾ³ý¿ÕÎļþ£¬Ò»g ......

JavaÐéÄâ»ú²ÎÊýѧϰ »ù±¾²ÎÊý

JavaÐéÄâ»ú²ÎÊý·ÖΪ»ù±¾²ÎÊýºÍÀ©Õ¹²ÎÊý£¬±¾ÎÄÖ÷ÒªÏêϸ½éÉÜ»ù±¾²ÎÊýÖи÷¸ö²ÎÊýµÄÒâÒåÒÔ¼°ÆäÓ÷¨¡£
Òª²é¿´JavaÐéÄâ»úÓÐÄÄЩ¿ÉÑ¡µÄ²ÎÊýÅäÖ㬿ÉÒÔÖ±½ÓÔËÐÐjavaÃüÁÏÔʾÈçÏÂЧ¹û£º
ϱ߷ֱð½éÉÜÿ¸ö²ÎÊýµÄÓ÷¨£º
1. -client£¬-server
ÕâÁ½¸ö²ÎÊýÓÃÓÚÉèÖÃÐéÄâ»úʹÓúÎÖÖÔËÐÐģʽ£¬clientģʽÆô¶¯±È½Ï¿ì£¬µ«ÔËÐÐʱÐÔÄܺÍÄÚ´ ......

java¹Ø¼ü×Ö

java¶àÏ̱߳à³Ì×ܽ᣺
http://lavasoft.blog.51cto.com/62575/27069
Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
:
http://xo-tobacoo.javaeye.com/blog/374282
¡¡¡¡1.public
¡¡¡¡¡¡¡¡Ê¹ÓöÔÏó£ºÀà¡¢½Ó¿Ú¡¢³ÉÔ±
¡¡¡¡¡¡¡¡½éÉÜ£ºÎÞÂÛËüËù´¦Ôڵİü¶¨ÒåÔÚÄÄ£¬¸ÃÀࣨ½Ó¿Ú¡¢³ÉÔ±£©¶¼ÊÇ¿É·ÃÎʵÄ
¡¡¡¡2.private
¡¡¡¡¡¡¡¡Ê¹ÓöÔÏó ......

eclipse н¨ java Îļþʱ×Ô¶¯Éú³É×¢ÊÍ

Windows->Preference->Java->Code Style->Code Templates->Code->New Java file->Edit
Ô­À´µÄÄ£°å£º
${filecomment}
${package_declaration}
${typecomment}
${type_declaration}
Ð޸ĺó£º
${filecomment}
${package_declaration}
/**
* @author Xing,Ming
* @version ${date} ${time}
* ......

ÔÚJavaÖвúÉúËæ»úÊýµÄÁ½¸ö·½·¨


Ò»¡¢ÀûÓÃrandom·½·¨À´Éú³ÉËæ»úÊý¡£
ÔÚJavaÓïÑÔÖÐÉú³ÉËæ »úÊýÏà¶ÔÀ´Ëµ±È½Ï¼òµ¥£¬ÒòΪÓÐÒ»¸öÏֳɵķ½·¨¿ÉÒÔʹÓá£ÔÚMathÀàÖУ¬JavaÓïÑÔÌṩÁËÒ»¸ö½Ð×örandomµÄ·½·¨¡£Í¨¹ýÕâ¸ö·½·¨¿ÉÒÔÈÃϵͳ²úÉúËæ»ú Êý¡£²»¹ýĬÈÏÇé¿öÏ£¬Æä²úÉúµÄËæ»úÊý·¶Î§±È½ÏС£¬Îª´óÓÚµÈÓÚ0µ½Ð¡ÓÚ1µÄdoubleÐÍËæ»úÊý¡£ËäÈ»ÆäËæ»úÊý²úÉúµÄ·¶Î§±È½ÏС£¬²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ