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´ó¸ÅÒ»¸öÔÂÁË£¬ÓÉÓÚÒÔÇ°ÓÐc/c++»ù´¡£¬ËùÒÔÔÚJ2SE²¿·ÖµÄѧϰÊDZȽϿìµÄ£¬½ñÌìÔÚÂÛ̳¿´µ½Ò»¸öÍøÓѵÄÇóÖúÌû£¬Òª½«Ó²ÅÌÉÏÁ½¸öÎļþºÏ²¢ÎªÒ»¸ö²¢É¾³ýÔÎļþ£¬ÓÚÊDZãдÁ˲âÊÔ³ÌÐò¡£ºóÀ´ÔÚɾ³ýÎļþʱ£¬ÓÉÓÚûÓаѶµ½ÎļþÉϵÄÊä³öÁ÷¹Ø±Õ£¬µ¼ÖÂÔõôҲÎÞ·¨É¾³ý¡£¶øÇÒÒ»Ö±²é²»³öÔÒò£¬ºóÀ´ÒÔΪÊÇdelete·½·¨Ö»ÄÜɾ³ý¿ÕÎļþ£¬Ò»g ......
JavaÐéÄâ»ú²ÎÊý·ÖΪ»ù±¾²ÎÊýºÍÀ©Õ¹²ÎÊý£¬±¾ÎÄÖ÷ÒªÏêϸ½éÉÜ»ù±¾²ÎÊýÖи÷¸ö²ÎÊýµÄÒâÒåÒÔ¼°ÆäÓ÷¨¡£
Òª²é¿´JavaÐéÄâ»úÓÐÄÄЩ¿ÉÑ¡µÄ²ÎÊýÅäÖ㬿ÉÒÔÖ±½ÓÔËÐÐjavaÃüÁÏÔʾÈçÏÂЧ¹û£º
ϱ߷ֱð½éÉÜÿ¸ö²ÎÊýµÄÓ÷¨£º
1. -client£¬-server
ÕâÁ½¸ö²ÎÊýÓÃÓÚÉèÖÃÐéÄâ»úʹÓúÎÖÖÔËÐÐģʽ£¬clientģʽÆô¶¯±È½Ï¿ì£¬µ«ÔËÐÐʱÐÔÄܺÍÄÚ´ ......
java¶àÏ̱߳à³Ì×ܽ᣺
http://lavasoft.blog.51cto.com/62575/27069
Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
:
http://xo-tobacoo.javaeye.com/blog/374282
¡¡¡¡1.public
¡¡¡¡¡¡¡¡Ê¹ÓöÔÏó£ºÀà¡¢½Ó¿Ú¡¢³ÉÔ±
¡¡¡¡¡¡¡¡½éÉÜ£ºÎÞÂÛËüËù´¦Ôڵİü¶¨ÒåÔÚÄÄ£¬¸ÃÀࣨ½Ó¿Ú¡¢³ÉÔ±£©¶¼ÊÇ¿É·ÃÎʵÄ
¡¡¡¡2.private
¡¡¡¡¡¡¡¡Ê¹ÓöÔÏó ......
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}
* ......
Ò»¡¢ÀûÓÃrandom·½·¨À´Éú³ÉËæ»úÊý¡£
ÔÚJavaÓïÑÔÖÐÉú³ÉËæ »úÊýÏà¶ÔÀ´Ëµ±È½Ï¼òµ¥£¬ÒòΪÓÐÒ»¸öÏֳɵķ½·¨¿ÉÒÔʹÓá£ÔÚMathÀàÖУ¬JavaÓïÑÔÌṩÁËÒ»¸ö½Ð×örandomµÄ·½·¨¡£Í¨¹ýÕâ¸ö·½·¨¿ÉÒÔÈÃϵͳ²úÉúËæ»ú Êý¡£²»¹ýĬÈÏÇé¿öÏ£¬Æä²úÉúµÄËæ»úÊý·¶Î§±È½ÏС£¬Îª´óÓÚµÈÓÚ0µ½Ð¡ÓÚ1µÄdoubleÐÍËæ»úÊý¡£ËäÈ»ÆäËæ»úÊý²úÉúµÄ·¶Î§±È½ÏС£¬²» ......