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

sqliteÈ«ÎIJéѯÅäÖõ½Ê¹ÓÃÈ«¹ý³Ì

      SQLiteÊÇÒ»¿îÇáÐ͵ÄÊý¾Ý¿â£¬ÊÇ×ñÊØACIDµÄ¹ØÁªÊ½Êý¾Ý¿â¹ÜÀíϵͳ£¬ËüµÄÉè¼ÆÄ¿±êÊÇǶÈëʽµÄ£¬¶øÇÒÄ¿Ç°ÒѾ­ÔںܶàǶÈëʽ²úÆ·ÖÐʹÓÃÁËËü£¬ËüÕ¼ÓÃ×ÊÔ´·Ç³£µÄµÍ£¬ÔÚǶÈëʽÉ豸ÖУ¬¿ÉÄÜÖ»ÐèÒª¼¸°ÙKµÄÄÚ´æ¾Í¹»ÁË¡£ËüÄܹ»Ö§³ÖWindows/Linux/UnixµÈµÈÖ÷Á÷µÄ²Ù×÷ϵͳ£¬Í¬Ê±Äܹ»¸úºÜ¶à³ÌÐòÓïÑÔÏà½áºÏ£¬±ÈÈçTcl¡¢PHP¡¢JavaµÈ£¬»¹ÓÐODBC½Ó¿Ú£¬Í¬Ñù±ÈÆðMysql¡¢PostgreSQLÕâÁ½¿î¿ªÔ´ÊÀ½çÖøÃûµÄÊý¾Ý¿â¹ÜÀíϵͳÀ´½²£¬ËüµÄ´¦ÀíËٶȱÈËûÃǶ¼¿ì¡£
      GoogleΪSQLite¹±Ï×ÁËһЩ×ÊÔ´ÒÔʵÏÖ°ïÖú¡£ÔÚ°æ±¾3.3.8ÖеÚÒ»´ÎʵÏÖÈ«ÎļìË÷¡£´Ë°æ±¾ÌṩµÄ¹¦ÄÜ¿ÉÒÔ´´½¨Ò»¸öÒÀÀµÓÚÍⲿÑÓÉìµÄÐéÄâ±í£ºÔÚÕâÀȫÎÄËÑË÷ÔËËã·¨Ôò¿ÉÓÃÓÚÈκÎÐéÄâ±íÄÚµÄÎı¾ÁС£ÔÚPHP 5.3.0ÖУ¬¶ÔÓ¦µÄÖ§³ÖÖ»±»Ä¬ÈϵÄPDOºÍSQLite3¼¤»î¡£½ÏÔç°æ±¾µÄPHP¿ÉÒÔʹÓÃPECL µÄSQLite3À©Õ¹¿â¡£
¡¡¡¡´´½¨Ò»¸öËÑË÷Ë÷Òýͨ³£Çé¿öÈçÏ£º
¡¡¡¡• °ÑÎı¾·Ö½â³É¼ÇºÅ¡£
¡¡¡¡• ת»»ÎªÐ¡Ð´×Öĸ¡£
¡¡¡¡• È·¶¨¸ù´Ê¡£
¡¡¡¡• ½¨Á¢Ë÷Òý¡£
¡¡¡¡ÉèÖúÃÒ»ÇÐ
¡¡¡¡ÔÚĬÈÏÇé¿öÏ£¬SQLiteÌṩÁËÁ½¸ö»ù±¾µÄ·Ö´ÊÆ÷£¬SimpleºÍPorter¡£ËüÃÇ¿ÉÒÔ¿ØÖÆ×ֵķֿª·½Ê½¡£Simple¸ù¾Ý¿Õ¸ñºÍ±êµã·ûºÅ½«Îı¾·Ö½â³É²»Í¬µÄ¼ÇºÅ¡£PorterÊÇרΪӢÎÄʹÓöøÉè¼Æ£¬Ëü¿ÉÒÔ½«´óÁ¿µÄÎÄ×ÖÀ©Õ¹»¯½âΪ»ù´¡ÐÎʽ¡£ÀýÈ磬condolidate£¬consolidated£¬ºÍconsolidatingÕâÒ»Àà´ÊÓﶼ»á±»×ª±ä³Éconsolid¡£
¡¡¡¡Òź¶µÄÊÇ£¬SQLiteÄ¿Ç°»¹Ã»ÓÐÈ¡ÏûÍ£Óôʡ£ËùÒÔ³£Óôʣ¬ÀýÈ磬the,ofºÍtoÈÔλÓÚË÷ÒýÄÚ¡£Õâ»á¼«´óµØÀ©³äË÷ÒýµÄ·¶³ë²¢¼õ»ºËÑË÷Ëٶȡ£×î¼òµ¥µÄ½â¾ö°ì·¨ÊÇ£¬ÔÚ°´ÏÂÈ·ÈϼìË÷֮ǰÊÖ¶¯³ýȥͣÓôʡ£
      Ê×Ïȴһ¸ö²âÊÔ»·¾³ÎÒÃÇÓÐLINUXϵͳϱàÒë°²×°sqlite-amalgamation-3.6.18.tar.gz
ÏÂÔØsqlite×îа汾
$ wget http://www.sqlite.org/sqlite-amalgamation-3.6.18.tar.gz
½âѹËõ
$ tar zxvf sqlite-amalgamation-3.6.18.tar.gz
$ cd sqlite-3.6.18/
ÅäÖñàÒësqlite
$ CFLAGS="-DSQLITE_ENABLE_FTS3=1" ./configure
$ make
$ make install
Íê³É
²é¿´°æ±¾
$ sqlite3 --version
´´½¨Ò»¸ösqliteÊý¾Ý¿âÎļþ
$ sqlite3 dbdate.db
SQLite version 3.6.18
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
´´½¨Ò»¸öÐé±í
sqlite> CREATE VIRTUAL TABLE recipe USING fts3(name, ingredients);
²åÈë¼Ç¼ÐÅÏ¢
sqlite


Ïà¹ØÎĵµ£º

SQLiteÓï·¨ CREATE TRIGGER


ʱ¼ä:
2009-08-14 21:18:18À´Ô´:
ÍøÂç ×÷Õß:
δ
Öª µã»÷:
214
´Î
CREATE TRIGGER
    
        
            sql-statement ::=
       ......

SqLite ʱ¼ä¸ñʽ


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

SQLiteÊý¾Ý¿âÁ¬½Ó·½Ê½

SQLiteÊý¾Ý¿âÁ¬½Ó·½Ê½
 
SQLite.NET
Type:    .NET Framework Class Library
Usage:  System.Data.SQLite.SQLiteConnection
Basic
Data Source=filename;Version=3;
Version 2 is not supported by this class library.
 Using UTF16
Data Source=filename;Version=3;UseUTF16 ......

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.²åÈë¼Ç¼ ......

Android (SQLite Êý¾Ý¿âÓëContentProvider)

ÔÚ AndroidÖУ¬¶ÔÓÚÊý¾ÝµÄ´æÖü£¬Óм¸ÖÖ·½Ê½£¬ÓÐÎļþ·½Ê½£¬ÓÐÎļþʽÊý¾Ý¿â·½Ê½,Android×Ô´øÁËÒ»¸öSQLiteÊý¾Ý¿â£¬×öǶÈ뿪·¢µÄÈ˶ÔÕâ¸ö¿çƽ̨µÄ±¾µØÎļþÊý¾Ý¿âÒ»¶¨²»»áÄ°Éú£¬ÔÚAndroid¶ÔÓÚÊý¾ÝµÄ·ÃÎÊ£¬Ìá³öÁËеķ½Ê½£¬ContentProvider·½Ê½£¬ÀàËÆÓÚMSµÄ ContentProvider·½Ê½µÄ£¬OLEDB£¬¼°ODBCͳһµÄÊý¾Ý·½Ê½¡£
ÎÒÃÇÊ×ÏÈÀ´¿´¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ