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

SqliteÖÐÎÄÅÅÐòÑо¿

תÔØʱÇë×¢Ã÷³ö´¦ºÍ×÷ÕßÁªÏµ·½Ê½£ºhttp://blog.csdn.net/absurd
×÷ÕßÁªÏµ·½Ê½£ºLi XianJing <xianjimli at hotmail dot com>
¸üÐÂʱ¼ä£º2006-12-19
SqliteÊÇÒ»¸öÓÃCÓïÑÔʵÏÖµÄСÐÍSQLÊý¾Ý¿âÒýÇæ¡£ËüÌå»ýСÇɵ«¹¦ÄÜÇ¿´ó£¬¶ÔÓ²¼þ×ÊÔ´ÒªÇóºÜµÍ¶øÇÒÐÔÄܱíÏÖ׿Խ£¬·Ç³£ÊʺÏÓÚǶÈëʽӦÓû·¾³¡£×î½ü·¢ÏÖsqlite²¢²»Ö§³ÖÖÐÎÄ(Æ´Òô/±Ê»­)ÅÅÐò£¬¶øÕâ¸ö¹¦ÄÜÓÖÊÇÎÒÃDZØÐèµÄ£¬ËùÒÔ»¨ÁËЩʱ¼äÈ¥Ñо¿¡£ÎÒ¶ÔSqliteµÄÁ˽âÖ»ÄÜËãÊÇÒµÓ༶£¬ÔÚÑо¿µÄ¹ý³Ì»òÐí×ßÁËЩÍä·£¬»òÐíÒѾ­ÓÐÏÖ´æµÄËã·¨¿ÉÀûÓ㬲»¹ÜÔõôÑù£¬ÔÚÑо¿¹ý³ÌÖл¹ÊÇÓв»ÉÙÊÕ»ñ£¬Ð´³öÀ´ºÍ´ó¼Ò̽ÌÖһϡ£
ÎÒÃÇÖªµÀ£¬¼ÆËã»úÖеÄÿһ¸ö×Ö·û¶¼ÓÐÒ»¸öÄÚÂë¡£ÔÚĬÈÏÇé¿öÏ£¬¼ÆËã»úÅÅÐòʱ£¬±È½ÏÁ½¸ö×Ö·ûµÄ´óС¾ÍÊDZȽÏ×Ö·ûÄÚÂëµÄ´óС£¬Õâ¶ÔÓÚÓ¢ÎÄÀ´ËµÃ»ÓÐÎÊÌ⣬ÒòΪӢÎÄ×ÖĸµÄÄÚÂëÊÇ°´×Öĸ˳ÐòµÝÔöµÄ¡£¶ÔÓÚÖÐÎÄÀ´Ëµ£¬¾Í±È½ÏÂé·³ÁË£ºÊ×ÏÈ£¬ÖÐÎĵÄÅÅÐò·½Ê½ÓжàÖÖ£¬±ÈÈç°´ÄÚÂëÅÅÐò¡¢°´Æ´ÒôÅÅÐòºÍ°´±Ê»­ÅÅÐò£¬ÒªÍ¨¹ý²ÎÊýÖ¸¶¨ÅÅÐòµÄ·½Ê½£¬·ñÔò¼ÆËã»ú¾Í°´ÄÚÂëÅÅÐòÁË¡£Æä´Î£¬ºº×ÖµÄÄÚÂë˳Ðò¼´²»Í¬ÓÚÆ´Òô˳Ðò£¬Ò²²»Í¬ÓÚ°´±Ê»­Ë³Ðò¡£ÔÚGB2312±àÂëÖУ¬ºº×Ö»ù±¾ÉÏ°´Æ´ÒôÅÅÐò£¨¾Ý˵ÓÐÀýÍ⣬²»Ì«Çå³þ£©¡£ÔÚGBKÖУ¬ËüÔÚGB2312»ù´¡ÉϽøÐÐÁËÀ©³ä£¬¼æÈÝGB2312ÖеÄËùÓÐ×Ö·û£¬ËùÒÔ²»ÊÇ°´Æ´ÒôÅÅÐòÁË¡£ÔÚUnicodeÖУ¬ºº×ÖµÄÅÅÁÐËƺõ¸üûÓÐʲô¹æÂÉ¿ÉÑÔÁË¡£
ΪÁ˽â¾öÄÚÂë˳ÐòÓëÓû§Ï°¹ß˳Ðò(ÈçÆ´Òô˳Ðò)µÄ³åÍ»£¬ÔÚglibcµÄlocaleÊý¾ÝÀҪÇóÌṩÅÅÐò·½Ê½(collate)µÄÃèÊö¡£ÎÒ¿´ÁËÒ»ÏÂglibc-2.3.5ÌṩµÄlocaleÊý¾Ý£¬ÔÚ¼òÌåÖÐÎÄ(zh_CN)µÄlocaleÊý¾ÝÃèÊöÀ¹ØÓÚÅÅÐò·½Ê½µÄÃèÊöÈçÏ£º
% ISO 14651 collation sequence
LC_COLLATE
copy "iso14651_t1"
END LC_COLLATE
Ò²¾ÍÊÇ˵£¬ÕÕ³­iso14651_t1µÄÅÅÐò·½Ê½¡£´ò¿ªiso14651_t1Îļþ¿´ÁËһϣ¬Ò²Ã»Óз¢ÏÖ¹ØÓÚÖÐÎĵÄÌØÊâ´¦Àí£¬¿ÉÒÔÍƶÏglibcĬÈϵÄÅÅÐò·½Ê½¾ÍÊÇ°´unicodeÅÅÐò¡£
ËùÒÔ²»ÄÜÖ¸ÍûglibcÌṩÖÐÎÄÅÅÐò¹¦ÄÜ£¬Èç¹ûSQLiteÖ§³ÖÁËÖÐÎÄÅÅÐòÖ»ÄÜÊÇ×öÁËÌØÊâ´¦Àí¡£ä¯ÀÀÁËÒ»ÏÂSQLiteµÄ´úÂ룬ÕâÖÖÏ£ÍûËƺõÒ²²»´ó¡£ÔÚÍøÉÏҲûÓв鵽Ïà¹ØµÄ×ÊÁϺͲ¹¶¡£¬¿´À´Ö»ÄÜ¿¿×Ô¼ºÁË¡£
²»¹ý£¬ÔÚä¯ÀÀSQLite´úÂëʱ»¹ÊÇÓÐЩÊÕ»ñ£¬ÖÁÉÙÖªµÀÁËËü±È½ÏÊý¾Ý¼Ç¼µÄ¹ý³Ì£º
1.         sqlite3VdbeExecµ÷ÓÃsqlite3BtreeInsert°Ñ¼Ç¼²åÈëµ½Êʵ±µÄλÖá£
2.         sqlite3BtreeInsertµ÷ÓÃsqlite3BtreeMovetoÕÒµ½Òª²åÈëµÄλÖá£


Ïà¹ØÎĵµ£º

SQLite on BlackBerry ÍêÃÀÖ§³ÖÖÐÎÄ

ÔÚSQLite on BlackBerryÉÏ£¬JDBC·ÃÎÊÊý¾Ý¿â£¬È±Ê¡ÊÇÒÔUTF-8±£´æÊý¾Ýµ½Êý¾Ý¿âÀïÃæµÄ£¬Ã¿¸öÖÐÎÄͨ³£ÊÇ3¸ö×Ö½Ú±£´æµ½Êý¾Ý¿âÉÏÃæµÄ¡£
  
Àý×Ó´úÂë²Î¿¼£º
BlackBerry sample - SQLiteDemo¡£
×¢Ò⣺ÔÚ²åÈëÖÐÎĵÄʱºò£¬ÇëʹÓÃStatement.bindÖ¸ÁÔÚÎҵIJâÊÔÖУ¬¿ÉÒԺܺõı£´æÖÐÎÄÊý¾Ý¡£¶ÁÈ¡µÄʱºòÖ»ÐèҪʹÓÃResult ......

android µÄsqlite Ö÷¼üÓësimpleCursorAdapter

android µÄsqlite Ö÷¼üÓësimpleCursorAdapter
×î½üÔÚÔÚ×öÒ»¸öСÀý×Óʱ£¬³öÏÖÒ»¸öСÎÊÌ⣬¾ÍÊDz»ÄÜÏÔʾ´ÓÊý¾Ý¿âÖвé³öµÄÊý¾Ý£¬ºóÀ´ÔÚÍøÉϲéÁËÒ»²é£¬²ÅÖªµÀÔ­À´ÊÇÕâ¸öÎÊÌâ¡£ 
 ÔÚʹÓÃsimpleCursorAdapterÏÔʾsqliteÊý¾Ýʱ£¬±ØÐë×¢ÒâsqliteµÄÖ÷¼üÃüÃû¡£ÓÉÓÚsimpleCursorAdapterµÄ·½·¨Ö»Ê¶±ð_id£¬ËùÒÔ£¬µ±ÄãÓõ½sql ......

SQLiteÔÚVCϵÄʹÓÃ


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

Sqlite DB

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

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ºÅ