×î½üÓÉÓÚÏîÄ¿ÐèÒª£¬ ÒªÔÚwince4.2, wince5.0, mobileÈýÖÖ»úÐÍÉÏÃæ×ö´óÊý¾ÝÁ¿µÄ²éѯ£¬³õ²½¹À¼ÆÔÚ50W-500WÌõ¼Ç¼֮¼ä¡£
ÓÉÓÚÒÔÇ°×ömobile5µÄÊý¾Ý¿âÏîÄ¿Ö÷ÒªÊDzÉÓÃC#À´Ð´£¬¶øÇÒÊý¾ÝÁ¿Ò²¶¥¶à¼¸ÍòÌõ£¬ËùÒÔ£¬ÎªÁËÈ·±£ÏîÄ¿ºóÆÚÉÙ×ßÍä·£¬ÎÒÌØÒâ×öÁËÒ»ÏÂÒƶ¯Êý¾Ý¿âÐÔÄܲâÊÔ¡£ÏÂÃæÊÇÕâÖܵŤ×÷¼Ç¼¡£¹©´ó¼Ò²Î¿¼¡£
Ò». ÓÉÓÚwince4.2ÔÚ´ò°üOSµÄʱºòûÓдø.netµÄÖ§³Ö£¬ËùÒÔ£¬Ö»ÄÜÑ¡ÓÃC++£¬Ò²ÊÇΪÁ˸÷ƽ̨ÒÆÖ²·½±ã¡£
³õ²½¿¼ÂDzÉÓÃsqlce ºÍ sqliteÖеÄÒ»ÖÖ£¬sqlceÊÇmsµÄ¶«¶«£¬±È½ÏÎȶ¨¡£sqliteµÄ¿ªÔ´µÄ£¬Ê¹Ó÷½±ã£¬²éѯËٶȿ졣Òò´Ë£¬Á½ÖÖÎÒ¶¼×öÁËһϲâÊÔ¡£
1. sqlce¿ª·¢»·¾³:
EVC4 + sp4¡£ VS2005¡£ SqlCe 3.0
1). ÏÈÓÃVS2005дÁËÒ»¸öС³ÌÐò£¬Éú³É50ÍòÌõÄ£ÄâÊý¾Ý¡£(ÔÚvs2005ϲÙ×÷sdfÎļþÐèÒª°²×°Ò»¸ösqlceµÄ°ü)
2). ÔÚwinceÉÏʹÓÃsqlceµÄ»°£¬ÐèÒª°ÑÒÔÏÂÎļþcopyµ½windowsĿ¼(ÎÒµÄwinceûÓÐ×Ô´øsqlce°ü)£º
sqlcese30.dll,sqlceqp30.dll,sqlceoledb30.dll,sqlceme30.dll,sqlceer30CN.dll£¬²¢×¢²ásqlceoledb30.dll·½ÄÜÕý³£²Ù×÷Êý¾Ý¿â¡£(»òÕßÖ±½Ó°²×°sqlµÄcab°üÒ²ÐÐ)
3). ¿ªÊ¼±àwinceϵijÌÐò£¬²Ù×÷sqlceÊý¾Ý¿â.
::CoInitializeEx(NU ......
ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»Ê¹Óõ½¡£¾¡¹ÜÓÐÕâô¶àµÄµ÷Óýӿڣ¬ºËÐĵÄAPIÈÔÈ»Ïà¶Ô¼òµ¥ºÍ±ãÓÚµ÷Óᣱ¾Æ¬ÎÄÕµÄÄ¿µÄ¾ÍÊÇΪÁËÄܹ»¸üÒ×ÓÚÀí½âSQLiteµÄÔË×÷Ìṩ»ù´¡µÄ֪ʶ¡£
Áíһƪ¶ÀÁ¢µÄÎĵµ¡¶The SQLite C/C++ Interface¡·¶ÔSQLiteÖеÄËùÓÐC/C++½Ó¿ÚÌṩÁËÏêϸµÄʹÓÃ˵Ã÷¡£Ò»µ©¶ÁÕßÀí½âÁËSQLiteµÄ»ù±¾²Ù×÷ÔÀí£¬ÕâƪÎĵµ¾ÍÓ¦µ±×÷Ϊһ±¾²Î¿¼Êֲᡣ±¾ÆªÎÄÕ½ö½öÊÇSQLiteµÄÒ»¸öÈëÃŽéÉÜ£¬¶ø²»ÊÇÍêÕûºÍȨÍþÐÔµÄSQLite API²Î¿¼Ö¸ÄÏ¡£
1.0 ºËÐĶÔÏóºÍ½Ó¿Ú
SQLÊý¾Ý¿âÒýÇæµÄ×îÖ÷ÒªÈÎÎñÊǽâÎöSQLÓï¾ä¡£ÎªÁË´ï³ÉÕâ¸öÄ¿µÄ£¬¿ª·¢ÕßÐèÒªÁ˽âÁ½¸ö¶ÔÏó£º
* Êý¾Ý¿âÁ¬½Ó¶ÔÏó£ºsqlite3
* Ô¤´¦ÀíÓï¾ä¶ÔÏó£ºsqlite3_stmt
ÑϸñÀ´½²£¬Ô¤´¦ÀíÓï¾ä¶ÔÏó²¢²»ÊDZØÐëµÄ£¬ÒòΪÄܹ»Ê¹ÓÃsqlite_exec»òÕßsqlite3_get_tableÕâЩ±ãÓÚʹÓõķâ×°½Ó¿Ú£¬¶øÕâЩ½Ó¿Ú·â×°²¢Òþ²ØÁËÔ¤´¦ÀíÓï¾ä¶ÔÏó¡£¾¡¹ÜÈç´Ë£¬¶ÔÔ¤´¦Àí¶ÔÏóµÄÀí½âÓÐÖúÓÚÎÒÃǸ ......
ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»Ê¹Óõ½¡£¾¡¹ÜÓÐÕâô¶àµÄµ÷Óýӿڣ¬ºËÐĵÄAPIÈÔÈ»Ïà¶Ô¼òµ¥ºÍ±ãÓÚµ÷Óᣱ¾Æ¬ÎÄÕµÄÄ¿µÄ¾ÍÊÇΪÁËÄܹ»¸üÒ×ÓÚÀí½âSQLiteµÄÔË×÷Ìṩ»ù´¡µÄ֪ʶ¡£
Áíһƪ¶ÀÁ¢µÄÎĵµ¡¶The SQLite C/C++ Interface¡·¶ÔSQLiteÖеÄËùÓÐC/C++½Ó¿ÚÌṩÁËÏêϸµÄʹÓÃ˵Ã÷¡£Ò»µ©¶ÁÕßÀí½âÁËSQLiteµÄ»ù±¾²Ù×÷ÔÀí£¬ÕâƪÎĵµ¾ÍÓ¦µ±×÷Ϊһ±¾²Î¿¼Êֲᡣ±¾ÆªÎÄÕ½ö½öÊÇSQLiteµÄÒ»¸öÈëÃŽéÉÜ£¬¶ø²»ÊÇÍêÕûºÍȨÍþÐÔµÄSQLite API²Î¿¼Ö¸ÄÏ¡£
1.0 ºËÐĶÔÏóºÍ½Ó¿Ú
SQLÊý¾Ý¿âÒýÇæµÄ×îÖ÷ÒªÈÎÎñÊǽâÎöSQLÓï¾ä¡£ÎªÁË´ï³ÉÕâ¸öÄ¿µÄ£¬¿ª·¢ÕßÐèÒªÁ˽âÁ½¸ö¶ÔÏó£º
* Êý¾Ý¿âÁ¬½Ó¶ÔÏó£ºsqlite3
* Ô¤´¦ÀíÓï¾ä¶ÔÏó£ºsqlite3_stmt
ÑϸñÀ´½²£¬Ô¤´¦ÀíÓï¾ä¶ÔÏó²¢²»ÊDZØÐëµÄ£¬ÒòΪÄܹ»Ê¹ÓÃsqlite_exec»òÕßsqlite3_get_tableÕâЩ±ãÓÚʹÓõķâ×°½Ó¿Ú£¬¶øÕâЩ½Ó¿Ú·â×°²¢Òþ²ØÁËÔ¤´¦ÀíÓï¾ä¶ÔÏó¡£¾¡¹ÜÈç´Ë£¬¶ÔÔ¤´¦Àí¶ÔÏóµÄÀí½âÓÐÖúÓÚÎÒÃǸ ......
ÕâƪÎÄÕÂÊÇʹÓÃSQLite C/C++½Ó¿ÚµÄÒ»¸ö¸ÅÒª½éÉܺÍÈëÃÅÖ¸ÄÏ¡£
ÓÉÓÚÔçÆÚµÄSQLiteÖ»Ö§³Ö5¸öC/C++½Ó¿Ú£¬Òò¶ø·Ç³£ÈÝÒ×ѧϰºÍʹÓ㬵«ÊÇËæ×ÅSQLite¹¦ÄܵÄÔöÇ¿£¬ÐµÄC/C++½Ó¿Ú²»¶ÏµÄÔö¼Ó½øÀ´£¬µ½ÏÖÔÚÓг¬¹ý150¸ö²»Í¬µÄAPI½Ó¿Ú¡£ÕâÍùÍùʹ³õѧÕßÍû¶øÈ´²½¡£ÐÒÔ˵ÄÊÇ£¬´ó¶àÊýSQLiteÖеÄC/C++½Ó¿ÚÊÇרÓõģ¬Òò¶øºÜÉÙ±»Ê¹Óõ½¡£¾¡¹ÜÓÐÕâô¶àµÄµ÷Óýӿڣ¬ºËÐĵÄAPIÈÔÈ»Ïà¶Ô¼òµ¥ºÍ±ãÓÚµ÷Óᣱ¾Æ¬ÎÄÕµÄÄ¿µÄ¾ÍÊÇΪÁËÄܹ»¸üÒ×ÓÚÀí½âSQLiteµÄÔË×÷Ìṩ»ù´¡µÄ֪ʶ¡£
Áíһƪ¶ÀÁ¢µÄÎĵµ¡¶The SQLite C/C++ Interface¡·¶ÔSQLiteÖеÄËùÓÐC/C++½Ó¿ÚÌṩÁËÏêϸµÄʹÓÃ˵Ã÷¡£Ò»µ©¶ÁÕßÀí½âÁËSQLiteµÄ»ù±¾²Ù×÷ÔÀí£¬ÕâƪÎĵµ¾ÍÓ¦µ±×÷Ϊһ±¾²Î¿¼Êֲᡣ±¾ÆªÎÄÕ½ö½öÊÇSQLiteµÄÒ»¸öÈëÃŽéÉÜ£¬¶ø²»ÊÇÍêÕûºÍȨÍþÐÔµÄSQLite API²Î¿¼Ö¸ÄÏ¡£
1.0 ºËÐĶÔÏóºÍ½Ó¿Ú
SQLÊý¾Ý¿âÒýÇæµÄ×îÖ÷ÒªÈÎÎñÊǽâÎöSQLÓï¾ä¡£ÎªÁË´ï³ÉÕâ¸öÄ¿µÄ£¬¿ª·¢ÕßÐèÒªÁ˽âÁ½¸ö¶ÔÏó£º
* Êý¾Ý¿âÁ¬½Ó¶ÔÏó£ºsqlite3
* Ô¤´¦ÀíÓï¾ä¶ÔÏó£ºsqlite3_stmt
ÑϸñÀ´½²£¬Ô¤´¦ÀíÓï¾ä¶ÔÏó²¢²»ÊDZØÐëµÄ£¬ÒòΪÄܹ»Ê¹ÓÃsqlite_exec»òÕßsqlite3_get_tableÕâЩ±ãÓÚʹÓõķâ×°½Ó¿Ú£¬¶øÕâЩ½Ó¿Ú·â×°²¢Òþ²ØÁËÔ¤´¦ÀíÓï¾ä¶ÔÏó¡£¾¡¹ÜÈç´Ë£¬¶ÔÔ¤´¦Àí¶ÔÏóµÄÀí½âÓÐÖúÓÚÎÒÃǸ ......
http://www.umgr.com/blog/PostView.aspx?bpId=36294
1. Ö´ÐÐsqlÓï¾ä
int sqlite3_exec(sqlite3*£¬ const char *sql£¬ sqlite3_callbacksql Óï·¨
£¬ void *£¬ char **errmsg );
Õâ¾ÍÊÇÖ´ÐÐÒ»Ìõ sql Óï¾äµÄº¯Êý¡£
µÚ1¸ö²ÎÊý²»ÔÙ˵ÁË£¬ÊÇÇ°Ãæopenº¯ÊýµÃµ½µÄÖ¸Õ롣˵ÁËÊǹؼüÊý¾Ý½á¹¹¡£
µÚ2¸ö²ÎÊýconst char *sql ÊÇÒ»Ìõ sql Óï¾ä£¬ÒÔ\0½áβ¡£
µÚ3¸ö²ÎÊýsqlite3_callback Êǻص÷£¬µ±ÕâÌõÓï¾äÖ´ÐÐÖ®ºó£¬sqlite3»áÈ¥µ÷ÓÃÄãÌṩµÄÕâ¸öº¯Êý¡£
µÚ4¸ö²ÎÊývoid * ÊÇÄãËùÌṩµÄÖ¸Õësql Óï·¨
£¬Äã¿ÉÒÔ´«µÝÈκÎÒ»¸öÖ¸Õë²ÎÊýµ½ÕâÀÕâ¸ö²ÎÊý×îÖջᴫµ½»Øµ÷º¯ÊýÀïÃ棬Õâ¸öÖ¸Õë±È½ÏÖØÒª£¬¿ÉÒÔÓÃÀ´×÷²ÎÊýµÄ´«µÝ¡£Èç¹û²»ÐèÒª´«µÝÖ¸Õë¸ø»Øµ÷º¯Êý£¬¿ÉÒÔÌîNULL¡£µÈÏÂÎÒÃÇÔÙ¿´»Øµ÷º¯ÊýµÄд·¨£¬ÒÔ¼°Õâ¸ö²ÎÊýµÄʹÓá£
µÚ
5 ¸ö²ÎÊýchar ** errmsg ÊÇ´íÎóÐÅÏ¢¡£×¢ÒâÊÇÖ¸ÕëµÄÖ¸Õë¡£sqlite3ÀïÃæÓкܶà¹Ì¶¨µÄ´íÎóÐÅÏ¢¡£Ö´ÐÐ sqlite3_exec
Ö®ºó£¬Ö´ÐÐʧ°Üʱ¿ÉÒÔ²éÔÄÕâ¸öÖ¸Õ루ֱ½Ó
printf(“%s\n”£¬errmsg)£©µÃµ½Ò»´®×Ö·û´®ÐÅÏ¢£¬Õâ´®ÐÅÏ¢¸æËßÄã´íÔÚʲôµØ·½¡£sqlite3_execº¯Êýͨ¹ýÐÞ¸ÄÄã´«ÈëµÄÖ¸ÕëµÄÖ¸
Õ룬°ÑÄãÌṩµÄÖ¸ÕëÖ¸Ïò´íÎóÌáʾÐÅÏ¢£¬ÕâÑùsqlite3_execº¯ÊýÍâà ......
http://www.umgr.com/blog/PostView.aspx?bpId=36294
1. Ö´ÐÐsqlÓï¾ä
int sqlite3_exec(sqlite3*£¬ const char *sql£¬ sqlite3_callbacksql Óï·¨
£¬ void *£¬ char **errmsg );
Õâ¾ÍÊÇÖ´ÐÐÒ»Ìõ sql Óï¾äµÄº¯Êý¡£
µÚ1¸ö²ÎÊý²»ÔÙ˵ÁË£¬ÊÇÇ°Ãæopenº¯ÊýµÃµ½µÄÖ¸Õ롣˵ÁËÊǹؼüÊý¾Ý½á¹¹¡£
µÚ2¸ö²ÎÊýconst char *sql ÊÇÒ»Ìõ sql Óï¾ä£¬ÒÔ\0½áβ¡£
µÚ3¸ö²ÎÊýsqlite3_callback Êǻص÷£¬µ±ÕâÌõÓï¾äÖ´ÐÐÖ®ºó£¬sqlite3»áÈ¥µ÷ÓÃÄãÌṩµÄÕâ¸öº¯Êý¡£
µÚ4¸ö²ÎÊývoid * ÊÇÄãËùÌṩµÄÖ¸Õësql Óï·¨
£¬Äã¿ÉÒÔ´«µÝÈκÎÒ»¸öÖ¸Õë²ÎÊýµ½ÕâÀÕâ¸ö²ÎÊý×îÖջᴫµ½»Øµ÷º¯ÊýÀïÃ棬Õâ¸öÖ¸Õë±È½ÏÖØÒª£¬¿ÉÒÔÓÃÀ´×÷²ÎÊýµÄ´«µÝ¡£Èç¹û²»ÐèÒª´«µÝÖ¸Õë¸ø»Øµ÷º¯Êý£¬¿ÉÒÔÌîNULL¡£µÈÏÂÎÒÃÇÔÙ¿´»Øµ÷º¯ÊýµÄд·¨£¬ÒÔ¼°Õâ¸ö²ÎÊýµÄʹÓá£
µÚ
5 ¸ö²ÎÊýchar ** errmsg ÊÇ´íÎóÐÅÏ¢¡£×¢ÒâÊÇÖ¸ÕëµÄÖ¸Õë¡£sqlite3ÀïÃæÓкܶà¹Ì¶¨µÄ´íÎóÐÅÏ¢¡£Ö´ÐÐ sqlite3_exec
Ö®ºó£¬Ö´ÐÐʧ°Üʱ¿ÉÒÔ²éÔÄÕâ¸öÖ¸Õ루ֱ½Ó
printf(“%s\n”£¬errmsg)£©µÃµ½Ò»´®×Ö·û´®ÐÅÏ¢£¬Õâ´®ÐÅÏ¢¸æËßÄã´íÔÚʲôµØ·½¡£sqlite3_execº¯Êýͨ¹ýÐÞ¸ÄÄã´«ÈëµÄÖ¸ÕëµÄÖ¸
Õ룬°ÑÄãÌṩµÄÖ¸ÕëÖ¸Ïò´íÎóÌáʾÐÅÏ¢£¬ÕâÑùsqlite3_execº¯ÊýÍâà ......
µ±Á˸öwxsqlite3µÄ¼ÓÃÜ¿â,È»ºóÔÚÍøÉÏÕÒÁ˺ü¸¸ö¹¤¾ß£¬Ã²ËÆÓøÿâÈ¥Ö´ÐмÓÃܺóµÄ¿â¾Í²»ÐУ¬ÒªÃ´ÊDz»Ö§³Ö¼ÓÃÜ£¬ÒªÃ´ÊÇÖ§³Ö¼ÓÃÜ£¬µ«ÊÇÓøÿⴴ½¨µÄÎļþ´ò²»¿ª£¡ÓÚÊÇ»¨ÁËÒ»¸öÐÇÆÚ×öÕâô¸öÍæÒ⣨һ°ã¶¼ÊÇÍíÉÏ£¬°×ÌìÒªÉϰ࣬ÐÁ¿àÖУ©¡£ÒòΪÊÇΪ²Ö´ÙÖ®×÷£¬ËùÒÔϸ»¯·½ÃæûÓÐÉîÈ룬ÁíÍâÒòΪʱ¼äÔÒò£¬»¹ÓкÃЩ¸ö¶«Î÷ûÓÐÀ´µÃ¼°ÊµÏÖ£¨±ÈÈçһЩÀýÍâµÄС¹¤¾ß£¬ÊÓͼ£¬¶à±àÂë¸ñʽµÄÖ§³Ö£©¡£Ê±¼ä¿ÕÏжàʱ£¬ÔÙ×öºóÐø¿ª·¢£¬Ä¿Ç°ÄÜÖ§³ÖÒ»°ãµÄÊý¾Ý¿â¹¦ÄÜÁË£¬Ð½¨¿â£¬Ð½¨±í£¬ÐÞ¸Ä±í£¬²éѯµÈ£¬Ò»°ãÐèÒªÓ¦¸ÃÊÇÂú×ãÁË¡£
......
¡¾¹¤×÷»·¾³£º»ùÓÚÓÑÉÆÖ®±Ûmini2440¿ª·¢°å+Qtopia2.2°æ±¾+RedHat9+SQLite-3.3.6¡¿
1.QtopiaÖÐʹÓÃSQLite
ÓÉÓÚQt2²»Ö§³ÖÊý¾Ý¿â²Ù×÷£¬£¨Qt3°æ±¾¾ÍÌṩÁËÖ§³ÖÊý¾Ý¿â²Ù×÷µÄÀ࣬µ«ÊÇQtopia2±È½Ï¾µä£¬ÊÇ»ùÓÚQt2µÄ£¬Ã»°ì·¨£¡£©ËùÒÔÔÚQt/Qtopia³ÌÐòÖÐÐèÒªÊý¾Ý¿âʱ£¬¿ÉÒÔ¿¼ÂÇÔÚQtÖÐʹÓÃLinuxϲÙ×÷SQLiteÊý¾Ý¿âµÄ·½·¨¡££¨±í´ïµÄÓе㲻Çå³þ£¬ºÇºÇ£¬»ù±¾ÉϾÍÊÇÖ±½Ó°ÑLinuxϲÙ×÷SQLiteµÄ´úÂëCopyµ½QT³ÌÐòµÄijһ¸öº¯ÊýÏ¡££©
ÐèÒªÎÒÃÇÐ޸ĵĵط½£º
¢ÙÔÚQtopia³ÌÐòÖÐÌí¼ÓÍ·Îļþsqlite3.h
¢ÚÔÚMakefileÎļþÖÐLIBSÌí¼ÓSQLite¿âµÄ°²×°Â·¾¶
È磺-L/usr/local/sqlite-3.3.6/lib -lsqlite3
¢ÛÈç¹ûÊDZàÒëÔÚ¿ª·¢°åÉÏÔËÐеijÌÐò£¬ÔòÌí¼Óarmƽ̨ϱàÒëµÄsqliteµÄ¿â·¾¶¡££¨ÏȰѱàÒëºÃµÄ¿â¿½±´µ½¿ª·¢°å£¬Ö´ÐÐexport LD_LIBRARY_PATH,ÈÃÄãµÄϵͳÄܹ»Ê¶±ð¿â·¾¶£©
2.SQLiteÖд洢ÖÐÎIJÙ×÷
֮ǰ¿ÉÒÔÔÚQtopiaÖÐÏÔʾÖÐÎÄ£¬ºóÀ´³ÌÐòÖÐÐèÒªµ÷ÓÃÊý¾Ý¿âµÄÐÅÏ¢ÇÒÒªÊÇÖÐÎĵģ¬¾ÍÊÔÁËÏ£¬¿ÉÒÔÏÔʾ¡££¨×Ô¼º×ܽáһϣ¬Êý¾Ý¿âÖд洢µÄ»¹²»ÊÇ0ºÍ1Â𣬲»¹ÜÄãÊÇÖÐÎÄ»¹ÊÇÓ¢ÎÄ£¬Ö»ÒªÄãÊäÈëµÄʱºòºÍÊä³öµÄʱºòÌṩһÖµıàÂ룬¾Í¿ÉÒÔÁË¡££©
¢ÙÕâÀﶼʹÓÃUTF-8±àÂ뷽ʽ£¬ÊäÈëÖÐÎĵĻ·¾³Ò»¶¨Ò²ÒªÊÇUTF-8µÄ£¨ÎÒµÄVi´ò ......
http://blog.csdn.net/leadworld/archive/2007/01/20/1488539.aspx
SQLiteÊÇÒ»¸öºÜºÃÓõÄǶÈëʽÊý¾Ý¿â¡£¿ÉϧÃÀÖв»×ãµÄÊÇSQLiteµÄÃâ·Ñ°æ±¾²»¾ß±¸¼ÓÃܹ¦ÄÜ¡£Ôø¾ÔÚÍøÉÏ¿´µ½Ò»¸öÓÃWinCryptʵÏÖ¼ÓÃܹ¦Äܵİ汾£¬µ«ÎÒ²»Ï²»¶Ì«ÒÀÀµÓÚWindowsƽ̨¡£Õ⼸ÈÕÓÐʱ¼ä£¬×Ô¼º¾ÍÓÃXXTEAËã·¨ÔÚ SQLite3.3.7°æ±¾µÄ»ù´¡ÉÏʵÏÖÁ˼ÓÃܹ¦ÄÜ¡£Ñ¡ÔñXXTEAÖ÷ÒªÊÇÒòΪÕâ¸öËã·¨ËٶȺܿ죬¶ÔÐÔÄÜÔì³ÉµÄÓ°ÏìÏà¶Ô½ÏС¡£Ë³±ãÐÞ¸ÄÁËÍøÉÏÁ÷´«µÄXXTEA´úÂëµÄÒ»´¦ÄÚ´æÔ½½çµÄBUG¡£
ÓÃSQLiteµÄÒ»°ãÊǵ¥»ú°æÈí¼þ±È½Ï¶à£¬ÓмÓÃÜÐèÇóµÄÒ»¶¨²»ÉÙ£¬ËùÒÔÏÖÔڷųöÔ´´úÂëÓë´ó¼Ò·ÖÏí¡£´úÂëµÄ¹¤³ÌÎļþÊÇÓÃVC2005£¬Èç¹ûÓÃÆäËü±àÒëÆ÷£¬±àÒëµÄʱºò²»ÒªÍü¼Ç¼ÓÉÏSQLITE_HAS_CODECºê¡£´úÂëÖ»ÊÇ´ÖÂÔ²âÊÔ¹ý£¬²»±£Ö¤100£¥ÎÞBUGºÍÂß¼´íÎó¡£
......