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

2010ÄêSQLiteѧϰ±Ê¼ÇÖ®Èý

                                                      
2010ÄêSQLiteѧϰ±Ê¼ÇÖ®Èý
Ò»£®ÈçºÎ±¸·ÝÊý¾Ý¿â
ÏÈ´ò¿ªÊý¾Ý¿âtest.db
E:\sqlite\tool\sqlite-3_6_22>sqlite3  D:\Test\debug\test.db
sqlite> .backup D:\\Test\\debug\\test.bak
×¢Ò⣺һ¶¨ÒªÓÃ\\˫б¸Ü
¶þ£®ÈçºÎ»Ö¸´Êý¾Ý¿â
ÏÈ´ò¿ªÊý¾Ý¿âtest.db
E:\sqlite\tool\sqlite-3_6_22>sqlite3  D:\Test\debug\test.db
sqlite> .restore D:\\Test\\debug\\test.bak
×¢Ò⣺һ¶¨ÒªÓÃ\\˫б¸Ü
Èý£®ÏÈÅжϱíÈç¹û²»´æÔÚ£¬ÔòÔÙ´´½¨±í
SQL¿ÉÒÔÈçÏÂд£¬¹©²Î¿¼£º
create table if not exists student(id integer primary key autoincrement,\
age smallint ,anchor smallint);
ËÄ£®ÈçºÎ²éѯSQLite3С¹¤¾ß»òÕßSQLite3.dll¶¯Ì¬Á´½Ó¿âµÄ°æ±¾
Ö´ÐÐ select sqlite_version();ÃüÁî¼´¿É
Î壮SQLite3µÄ×îа汾ÊÇ£¨½ØÖ¹ÈÕÆÚ2010Äê2ÔÂ22ÈÕ£©
3.6.22
Áù£®Õë¶ÔSQLite3,Á½´óÓÅÐãC++·â×°¿â
1.CppSQLite3
http://www.codeproject.com/KB/database/CppSQLite.aspx
2.wxSQLite3
http://sourceforge.net/projects/wxcode/files/Components/wxSQLite3/wxsqlite3-1.9.8.zip/download
Æߣ®ÈçºÎÔÚWindowsϱàÒëSQLite3
1£®ÏÈ´Ó¹ÙÍø»ñÈ¡sqlite-amalgamation-3_6_22.zip£»
2£®½Ó×Å´Ó¹ÙÍø»ñÈ¡sqlitedll-3_6_22.zip
ÏÂÔرàÒëºÃµÄDLL£¬ÕâÀïÓÐÎÒÃÇÐèÒªµÄsqlite3.def¸ÃÎļþ
3£®´ò¿ªVCн¨Ò»¸ö“Win32 Dynamic-Link Library”¹¤³Ì£¬ÃüÃûΪ:sqlite3£»
4£®ÔÚ½ÓÏÂÀ´µÄ¶Ô»°¿òÖÐÑ¡Ôñ"An empty DLL project",µã FINISH->OK£»
5£®½«sqlite-amalgamation-3_6_22Îļþ¼ÐϵÄsqlite3.hÒÔ¼°sqlite3.cÁ½¸öÎļþ¸´ÖƵ½¹¤³ÌÎļþ¼ÐÏ£»
       ½«sqlitedll-3_6_22Îļþ¼ÐϵÄsqlite3.def¸ÃÎļþ¸´ÖƵ½¹¤³ÌÎļþ¼ÐÏ£»
6£®ÔÚ¹¤³ÌµÄSource FilesÖÐÌí¼Ósqlite3.cÎļþ£»
7£®ÔÚ¹¤³ÌµÄInclude FilesÖÐÌí¼Ósqlite3.hÎļþ£»
8£®ÔÚ¹¤³ÌµÄResource FilesÖÐÌí¼Ósqlite3.defÎļþ£»
9£®Õë¶ÔÈçÏÂÎÊÌ⣺
sqlite3.def : error LNK2001: unresolved external symbol sqlite3_colum


Ïà¹ØÎĵµ£º

SQLiteÊý¾ÝÀàÐÍ

Ò»°ãÊý¾Ý²ÉÓõĹ̶¨µÄ¾²Ì¬Êý¾ÝÀàÐÍ£¬¶øSQLite²ÉÓõÄÊǶ¯Ì¬Êý¾ÝÀàÐÍ£¬»á¸ù¾Ý´æÈëÖµ×Ô¶¯Åжϡ£SQLite¾ßÓÐÒÔÏÂÎåÖÖÊý¾ÝÀàÐÍ£º
1.NULL£º¿ÕÖµ¡£
2.INTEGER£º´ø·ûºÅµÄÕûÐÍ£¬¾ßÌåÈ¡¾öÓдæÈëÊý×ֵķ¶Î§´óС¡£
3.REAL£º¸¡µãÊý×Ö£¬´æ´¢Îª8-byte IEEE¸¡µãÊý¡£
4.TEXT£º×Ö·û´®Îı¾¡£
5.BLOB£º¶þ½øÖƶÔÏó¡£
ת×Ô£ºhttp://www.cnblo ......

ÊÕ¼¯Ç¶ÈëʽÊý¾Ý¿âSqliteÒÆÖ²×ÊÁÏ

sqlite-3.3.6±àÒë°²×°Óë½»²æ±àÒëÈ«¹ý³ÌÏêϸ¼Ç¼
ÏÂÎĽéÉܵÄÄÚÈݶ¼ÊÇ»ùÓÚ Linux RedHat 9.0 ƽ̨µÄ¡£
Ò»¡¢PC»ú±àÒë°²×°
ÇëÔĶÁÔÚ°²×°°üÀïµÄ INSTALL Îļþ¡£»òÕßʹÓÃPEAR installer with "pear install sqlite"¡£SQLiteÒѾ­ÄÚÖÃÁË£¬Äã²»ÐèÒª°²×°Èκθ½¼ÓµÄÈí¼þ£¨additional software£©¡£
Windows users¿ÉÒÔÏÂÔØSQLiteÀ©Õ¹ ......

Unity3d ʹÓÃsqliteÊý¾Ý¿â

dbAccess.js
import System.Data; // we import our data class
import Mono.Data.SqliteClient; // we import our sqlite client

class dbAccess {
// variables for basic query access
private var connection : String;
private var dbcon : IDbConnection;
private ......

sqlite Êý¾Ý¿â¿ÉÊÓ»¯²é¿´Ð޸ķÖÎö¹¤¾ßsqlitebrowser


SQLite Database Browser
 
 
SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt. The main goal of the project is to allow non-technical users to create, modify and edit SQLite databases using a set of wizards and a spreadsheet-like interface.
Downlo ......

SQLite3 C/C++ ¿ª·¢½Ó¿Ú¼ò½é£¨APIº¯Êý£©


SQLite3ÊÇSQLiteÒ»¸öȫеİ汾,ËüËäÈ»ÊÇÔÚSQLite 2.8.13µÄ´úÂë»ù´¡Ö®ÉÏ¿ª·¢µÄ,µ«ÊÇʹÓÃÁ˺Í֮ǰµÄ°æ±¾²»¼æÈݵÄÊý¾Ý¿â¸ñʽºÍAPI. SQLite3ÊÇΪÁËÂú×ãÒÔϵÄÐèÇó¶ø¿ª·¢µÄ:
Ö§³ÖUTF-16±àÂë.
Óû§×Ô¶¨ÒåµÄÎı¾ÅÅÐò·½·¨.
¿ÉÒÔ¶ÔBLOBs×ֶν¨Á¢Ë÷Òý.
Òò´ËΪÁËÖ§³ÖÕâЩÌØÐÔÎҸıäÁËÊý¾Ý¿âµÄ¸ñʽ,½¨Á¢ÁËÒ»¸öÓë֮ǰ°æ±¾²»¼æÈݵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ