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

SQLITEµÄ¾ÖÏÞÐÔ

SQLiteºÍÆäËû´ó²¿·ÖÏÖ´úSQLÊý¾Ý¿âÔÚ»ù±¾Éè¼ÆÄ¿±êÉÏÊDz»Í¬µÄ£¬ËüµÄÄ¿±êÊǼòµ¥¡£SQLite×ñÑ­ÕâһĿ±ê£¬¼´Ê¹ÕâÑùż¶û»áµ¼ÖÂijЩÌØÐÔʵÏֵĵÍЧ»¯¡£ÏÂÃæÁоÙÁËSQLiteµÄһЩȱÏÝ£º
SQL-92ÌØÐÔ·½Ãæ
ÕýÈçÇ°ÃæÌáµ½µÄ£¬SQLite²»Ö§³ÖSQL-92µÄÔںܶàÆóÒµÊý¾Ý¿âϵͳÖпÉÓõÄһЩÌØÐÔ¡£
È磺
Íâ¼üÔ¼Êø£¨¿É½âÎöµÄ£¬µ«·ÇÇ¿ÖÆ£©
ºÜ¶àALTER TABLEÌØÐÔ
һЩTRIGGERÏà¹ØµÄÌØÐÔ
RIGHTºÍFULL OUTER JOIN
¸üÐÂÒ»¸öVIEW
GRANTºÍREVOKE
Äã¿ÉÒÔÔÚSQLiteµÄÖ÷Ò³ÉÏ»ñÈ¡×îÐÂÐÅÏ¢¡£
http://www.sqlite.org/omitted.html
http://www.sqlite.org/cvstrac/wiki?p=UnsupportedSql
µÍ²¢·¢²Ù×÷
SQLiteÖ»Ö§³ÖƽÃæÊÂÎñ£»ËüûÓÐǶÌ׺ÍÓª¾ÈµãÄÜÁ¦¡£Ç¶Ì×Òâζ×ÅÔÚÒ»¸öÊÂÎñÖпÉÒÔÓÐ×ÓÊÂÎñµÄÄÜÁ¦¡£Óª¾ÈµãÔÊÐíÒ»¸öÊÂÎñ·µ»Øµ½Ç°ÃæÒѾ­µ½´ïµÄ״̬¡£ËüûÓÐÄÜÁ¦È·±£¸ß²ã´ÎÊÂÎñµÄ²¢·¢¡£ËüÔÊÐíÔÚµ¥¸öµÄÊý¾Ý¿âÎļþÉ϶à¸ö²¢·¢µÄ¶ÁÊÂÎñ£¬µ«ÊÇÖ»ÄÜÓÐÒ»¸öÅÅËûµÄдÊÂÎñ¡£Õâ¸ö¾ÖÏÞÐÔÒâζ×ÅÈç¹ûÓÐÊÂÎñÔÚ¶ÁÊý¾Ý¿âÎļþµÄÒ»²¿·Ö£¬ËùÓÐÆäËûµÄÊÂÎñ½«±»½ûֹд¸ÃÎļþµÄÈκÎÒ»²¿·Ö¡£ÀàËƵģ¬Èç¹ûÓÐÊÂÎñÔÚдÊý¾Ý¿âÎļþµÄÒ»²¿·Ö£¬ËùÓÐÆäËûÊÂÎñ½«±»½ûÖ¹¶Á»òÕßд¸ÃÎļþµÄÈκÎÒ»²¿·Ö¡£
Ó¦ÓÃÏÞÖÆ
ÒòΪËüÊÂÎñ´¦ÀíµÄÓÐÏÞ²¢·¢£¬SQLiteÖ»Éó¤´¦ÀíСÐ͵ÄÊÂÎñ¡£ÔںܶàÇé¿öÏ£¬Õâ²»ÊÇÎÊÌ⡣ÿ¸öÓ¦ÓÃѸËÙµÄÍê³ÉËüµÄÊý¾Ý¿â¹¤×÷È»ºó¼ÌÐøÇ°½ø£¬Òò´ËûÓÐÒ»¸öÊÂÎñ»á³ÖÓÐÊý¾Ý¿â³¬¹ý¶àÉÙºÁÃë¡£µ«ÊÇÔÚһЩӦÓÃÖУ¬ÌرðÊÇдÈëÃܼ¯µÄ£¬ÒªÇó¸ü¶àµÄ²¢·¢µÄÊÂÎñ´¦Àí£¨±í»òÕßÐ춱ðµÄ¶ø²»ÊÇÊý¾Ý¿â¼¶±ðµÄ£©ÄÇôÄ㽫ҪΪ¸ÃÓ¦ÓÃʹÓÃÆäËû²»Í¬µÄDBMS¡£SQLite²¢²»´òËã³ÉΪһ¸öÆóÒµDBMS¡£Ëû×îÊʺÏÓÚʵÏÖ£¬Î¬»¤ºÍ¹ÜÀíµÄ¼òµ¥ÐÔ±ÈÉÌÒµÊý¾Ý¿âµÄÎÞ¾¡¸´ÔÓÌØÐÔ¸üΪÖØÒªµÄÇé¿ö¡£
NFSÎÊÌâ
SQLiteʹÓñ¾µØÎļþËøÔ­ÓïÀ´¿ØÖÆÊÂÎñ´¦ÀíµÄ²¢·¢ÐÔ¡£Èç¹ûÊý¾Ý¿âÎļþפÁôÔÚÍøÂç·ÖÇøÉÏ£¬¿ÉÄܻᵼÖÂÎļþËø²»Äܹ¤×÷¡£ºÜ¶àµÄNFSʵÏÖ±»ÈÏΪÔÚËüÃǵÄÎļþËøÖÐÊÇÓÐbugµÄ£¨ÔÚUnixºÍWindowsÉÏ£©¡£Èç¹ûÎļþËø²»ÄÜÏñÔ¤¼ÆµÄÒ»Ñù¹¤×÷£¬ÄÇô¾Í¿ÉÄÜ»áÓÐÁ½¸ö»òÁ½¸öÒÔÉϵÄÓ¦ÓóÌÐòÔÚͬʱÐÞ¸ÄÏàͬÊý¾Ý¿âµÄͬһ²¿·Ö£¬µ¼ÖÂÁËÊý¾Ý¿âµÄ»Ù»µ¡£ÒòΪÕâ¸öÎÊÌâµÄ³öÏÖÊÇÒòΪλÓÚϲãµÄÎļþϵͳµÄʵÏÖµÄBUG£¬ËùÒÔSQLiteûÓа취×èÖ¹ËüµÄ·¢Éú¡£
ÁíÒ»Ô­ÒòÊÇ´ó¶àÊýÍøÂçÎļþϵͳµÄÁ¬½ÓÑÓʱ£¬Ð§¹û²»ÊǺܺá£ÔÚÕâÖÖ»·¾³Ï£¬ÔÚÊý¾Ý¿âÎļþ±ØÐëÒª¿çÍøÂç·ÃÎʵÄÇé¿öÏ£¬ÊµÏÖÁË¿Í»§¶Ë-·þÎñÆ÷µÄÄ£Ð͵ÄDBMS»á±ÈSQLite¸üÓÐЧ¡£
Êý¾Ý¿â¹æÄ£
ÒòΪËüµÄ¿ª·¢ÈËÔ±µÄ¿ª·¢Éè¼ÆÑ¡Ôñ£¬SQLite¿ÉÄܲ»ÊÇÒ»¸ö×ö·Ç³£´óÐ͵ÄÊý¾


Ïà¹ØÎĵµ£º

SQLiteÔÚVCϵÄʹÓÃ


Ò»¡¢SQLite¼ò½é
SQLite ÊÇÓÃCÓïÑÔ±àдµÄ¿ªÔ´Êý¾Ý¿â£¬Ö÷ÒªÓÃÓÚǶÈëʽ£¬ÄãÒ²¿ÉÒÔ°ÑËü¼¯³ÉÔÚ×Ô¼ºµÄ×ÀÃæ³ÌÐòÖУ¬Ò²ÓÐÈ˽«ÆäÌæ´úAccess£¬ÓÃ×÷ºǫ́Êý¾Ý¿â¡£
SQLite Ö§³Ö¶àÊýSQL92±ê×¼£¬ÀýÈ磺Ë÷Òý¡¢ÏÞÖÆ¡¢´¥·¢ºÍ²é¿´Ö§³Ö¡£
Ö§³Ö NULL¡¢INTEGER¡¢REAL¡¢TEXT ºÍ BLOB Êý¾ÝÀàÐÍ£¬Ö§³ÖÊÂÎñ¡£
¶þ¡¢ÏÂÔØSQLite
SQLite¿ÉÒÔµ½¹Ù·½Õ ......

SqLite ʱ¼ä¸ñʽ


sqliteʱ¼äº¯Êý£¨×ª£©
2007Äê12ÔÂ10ÈÕ ÐÇÆÚÒ» 13:33
תÌùÔ­Òò£º×î½üÉè¼ÆÁËÒ»¸ö¿çÊý¾Ý¿âµÄº¯Êý£¬À´²âÊÔ²âÊÔsqlite¡£
SQLite·ÖÒ³ÏÔʾ£ºSelect * from news order by id
desc Limit 10 Offset 10
ÕâƪÎÄÕÂÊǸù¾Ý SQLite ¹Ù·½ WIKI ÀïµÄÄÚÈÝ·­Ò룬Èç¹ûÓÐʲô·­Òë²»µ±µÄµØ·½Ï£Íû´ó¼ÒÖ¸³ö£¬±Ï¾¹ÎÒµÄÓ¢ÎÄˮƽʵÔںܲ SQ ......

SQLite ³õÌåÑé

1. ÏÂÔØ×îаæ SQLite (sqlite-3_6_23_1), copyµ½C:\ÏÂ.
2. н¨Êý¾Ý¿â:
C:\>sqlite3.exe "d:\testdb.db"
3.½øÈëÁËsqlite3Ö®ºó£¬»á¿´µ½ÒÔÏÂÎÄ×Ö£º
SQLite version 3.1.3
Enter ".help" for instructions
sqlite>
4.½¨Ò»¸öÃû½ÐfilmµÄÊý¾Ý¿â±í
create table film(title, length, year, starring);
5.²åÈë¼Ç¼ ......

sqlite¼ÓÃÜÉè¼ÆµÄȱÏÝÓë¸Ä½ø


sqliteÊÇ
Ò»¸ö·Ç³£Ð¡ÇɵĿçƽ̨ǶÈëʽÊý¾Ý¿â£¬Ëü±¾Éí²»Ìṩ¼ÓÃܹ¦ÄÜ£¬²»¹ýÉè¼ÆÕßÃ÷ÏÔÒ²¿¼ÂÇÁ˼ÓÃܵķ½°¸£¬ÎÒÃÇÔÚÔ´ÂëÖпÉÒÔÕÒµ½Á½¸öÔ¤ÁôµÄ¼ÓÃܽÓ
¿Ú£ºsqlite3_keyºÍsqlite3_rekey£¬¿ÉÒÔͨ¹ýʵÏÖÕâÁ½¸ö½Ó¿ÚÀ´´ïµ½¼ÓÃܵÄÄ¿µÄ¡£
        ÈçºÎ¼ÓÃÜ£¬ÒѾ­ÓкܶàÎÄÕÂÃèÊö£¬¿ÉÒԲο¼:¡¶
......

Android SQLITE ¼òµ¥Æð²½

1£º¶¨Òå±íµÄ½á¹¹ºÍÃû×Ö£¬ÎÒʹÓÃÒÔÏ·½·¨£º
public interface Constatnts extends BaseColumns {
   public static final String TABLE_NAME = "test";
  
   public static final String TIME = "time";
   public static final String TITLE = "title";
}
ÔÚÕâÀÎҼ̳Р......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ