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

sqliteÄÚ´æÊý¾Ý¿âʹÓÃÓиÐ

SQLite²»½ö¿ÉÒÔ°ÑÊý¾Ý¿â ·ÅÔÚÓ²ÅÌÉÏ£¬»¹¿ÉÒÔ·ÅÔÚÄÚ´æÖУ¨sqlite3_open(":memory:", &db)£©£¬¾­²âÊÔ£¬Í¬ÑùÌõ¼þÏÂÊý¾Ý¿â·ÅÔÚÄÚ´æÖбȷÅÔÚÓ²ÅÌÉϲåÈë¼Ç¼Ëٶȿì²î²»¶à3±¶¡£µ«Êý¾Ý¿â·ÅÔÚÄÚ´æÖÐʱÓÐÈçÏÂȱÏÝ£º
1¡¢¶Ïµç»ò³ÌÐò±ÀÀ£ºóÊý¾Ý¿â¾Í»áÏûʧ£¬ÄãÐèÒª¶¨ÆÚAttachµ½Ó²ÅÌÉϱ¸·Ý£»
2¡¢ÔÚÄÚ´æÖеÄÊý¾Ý¿â²»Äܱ»±ðµÄ½ø³Ì·ÃÎÊ(ÒòΪûÃû×Ö£¬ÒÔºó¿ÉÄÜÖ§³Ö)£¬¼´Ê¹ÔÚ¶àÏß³ÌÏ£¬Ò²µÃʹÓÃͬһ¾ä±ú£»
3¡¢²»Ö§³ÖÏñÔÚÓ²ÅÌÉϵĶÁд»¥³â´¦Àí£¬×Ô¼º¼ÓËø°É¡£
  ¿´À´£¬×·ÇóËÙ¶ÈÒª¸¶³ö´ú¼Û°¡£¡


Ïà¹ØÎĵµ£º

SQLiteÔÚVCϵÄʹÓÃ


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

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 ³õÌåÑé

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