Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

iphone¿ª·¢ SQLiteÊý¾Ý¿âʹÓÃ

ÎÒÏÖÔÚҪʹÓÃSQLite3.0´´½¨Ò»¸öÊý¾Ý¿â£¬È»ºóÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í¸ñ¡£
Ê×ÏÈÒªÒýÈëSQLite3.0µÄlib¿â¡£È»ºó°üº¬Í·Îļþ#import <sqlite3.h>
¡¾1¡¿´ò¿ªÊý¾Ý¿â£¬Èç¹ûûÓУ¬ÄÇô´´½¨Ò»¸ö
sqlite3* database_;
-(BOOL) open{
       NSArray *paths = NSSearchPathForDirectoriesInDomai ......

SQLite°Ù¶È


[±à¼­±¾¶Î
]
SQLite¼ò½é
SQLite
µÚÒ»¸öAlpha°æ±¾µ®ÉúÓÚ2000Äê5ÔÂ. ÖÁ½ñÒѾ­ÓÐ10¸öÄêÍ·ÁË. SQLiteÒ²Ó­À´ÁËÒ»¸ö°æ±¾ SQLite 3ÒѾ­·¢²¼.
¡¡¡¡SQLiteÊÇÒ»¿îÇáÐ͵ÄÊý¾Ý¿â£¬ÊÇ×ñÊØACIDµÄ¹ØÁªÊ½Êý¾Ý¿â¹ÜÀíϵͳ£¬ËüµÄÉè¼ÆÄ¿±êÊÇǶÈë
ʽµÄ£¬¶øÇÒÄ¿Ç°ÒѾ­ÔںܶàǶÈëʽ²úÆ·ÖÐʹÓÃÁËËü£¬ËüÕ¼ÓÃ×ÊÔ´·Ç³£µÄµÍ£¬ÔÚǶÈëʽÉ豸ÖУ¬¿ ......

Sqlite DB

Ç°Ò»Õó×Ö×öÏîÄ¿(ǶÈëʽlinux)£¬ÓÉÓÚÒª±£´æ´óÁ¿µÄÊý¾Ý£¬¶øÇÒ×Ҫ±£´æ30ÌìµÄʱ¼ä¡£±¾À´´òËã±£´æµ½ÎļþÖУ¬Ã¿´ÎÆô¶¯Ó¦ÓóÌÐòµÄʱºòÖØнâÎöÒ»±é£¬¿ÉÊǵ±Êý¾ÝÁ¿ºÜ´óµÄʱºò£¬¾Í³öÏÖЧÂʵÄÎÊÌâÁË¡£ËùÒÔ×îºó»¹ÊÇ·ÅÆúÁËʹÓÃÎļþµÄ´òË㣬¾ö¶¨Ê¹ÓÃÊý¾Ý¿â´æÈ¡Êý¾Ý¡£
linuxϵÄÊý¾Ý¿âÒ²ºÜ¶à£¬ÓпªÔ´µÄ£¬Ò²ÓÐÊշѵġ£¶ÔÓÚÎÒÃÇÀ´Ëµ£¬¿Ï ......

×ܽáSQLite²»Ö§³ÖµÄSQLÓï·¨ÓÐÄÄЩ


1 TOP
ÕâÊÇÒ»¸ö´ó¼Ò¾­³£Îʵ½µÄÎÊÌ⣬ÀýÈçÔÚSQLSERVERÖпÉÒÔʹÓÃÈçÏÂÓï¾äÀ´È¡µÃ¼Ç¼¼¯ÖеÄÇ°Ê®Ìõ¼Ç¼£º
SELECT TOP 10 * from [index] ORDER BY indexid DESC;
 
µ«ÊÇÕâÌõSQLÓï¾äÔÚSQLiteÖÐÊÇÎÞ·¨Ö´Ðеģ¬Ó¦¸Ã¸ÄΪ£º
SELECT * from [index] ORDER BY indexid DESC limit 0,10;
 
ÆäÖÐlimit 0,10±íʾ´ÓµÚ0 ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ