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

SQLITEÈëÃÅ Öð²½½²½âSQLITEÃüÁîÐÐ(Áù)


.nullvalue STRING ÓÃSTRING´úÌænullÖµÏÔʾ,²»ÄÑÀí½â£¬¾Í²»ÔÙÀÛÊöÁË¡£
.output FILENAME ÉèÖðѲéѯÊä³öµ½Îļþ,ºóÃæµÄÊä³ö½á¹û¶¼±£´æµ½ÎļþÖÐ,È磺
sqlite> .mode list
sqlite> .output websites.txt
sqlite> select * from websites;
sqlite>
¿ÉÒÔÔÚFÅÌÏ·¢ÏÖ½¨Á¢ÁËwebsites.txtÎļþ£¬ÆäÄÚÈÝÈçÏ£º
1|CTOChina.net
2|ËѺü
3|ÑÅ»¢
4|¿ªÔ´
5|¼¼Êõ
.output stdout ÉèÖðѲéѯ½á¹ûÊä³öµ½ÆÁÄ»,ÕâÊÇĬÈÏÊä³ö·½Ê½¡£È磺
sqlite> .output stdout
sqlite> select * from websites;
1|CTOChina.net
2|ËѺü
3|ÑÅ»¢
4|¿ªÔ´
5|¼¼Êõ
sqlite>
.prompt MAIN CONTINUE Replace the standard prompts(ÐÞ¸ÄÌáʾ·û)Çë²¹³ä£¿
.quit Í˳öSQLite³ÌÐò£¬Í¬.exitÃüÁî
.read FILENAME Execute SQL in FILENAME Ö´ÐÐÎļþÖеÄSQLÓï¾ä,ÎļþÖеÄÓï¾äÒ»¶¨Òª´øÉÏ·ÖºÅ(;).
ÎÒÃÇÔÚFÅÌϽ¨sqldata.txtÎļþ£¬ÆäÄÚÈÝΪ:
insert into websites(WebName) values('²âÊÔ²åÈëÊý¾Ý0');
insert into websites(WebName) values('²âÊÔ²åÈëÊý¾Ý1');
select * from websites;
ÎÒÃÇÖ´ÐÐ.readÃüÁîÈçÏ£º
sqlite> .read sqldata.txt
1|CTOChina.net
2|ËѺü
3|ÑÅ»¢
4|¿ªÔ´
5|¼¼Êõ
6|²âÊÔ²åÈëÊý¾Ý0
7|²âÊÔ²åÈëÊý¾Ý1
sqlite>
.schema ?TABLE? Show the Create statements ÒÔSQL¸ñʽÊä³ö±í½á¹¹,È磺
sqlite> .schema websites
CREATE TABLE [websites] (
[WebID] INTEGER NOT NULL PRIMARY KEY,
[WebName] VARCHAR(20) NULL
);
CREATE INDEX mytestindex on websites([webID]);
sqlite>
.separator STRING Change separator used by output mode and .import Ð޸ķָô·û,È磺
sqlite> select * from websites limit 4;
1|CTOChina.net
2|ËѺü
3|ÑÅ»¢
4|¿ªÔ´
sqlite> .separator /
sqlite> select * from websites limit 4;
1/CTOChina.net
2/ËѺü
3/ÑÅ»¢
4/¿ªÔ´
sqlite>
.show Show the current values for various settings ÏÔʾÅäÖÃÐÅÏ¢,È磺
sqlite> .show
echo: off
explain: off
headers: off
mode: list
nullvalue: ""
output: stdout
separator: "/"
width:
sqlite>
.tables ?PATTERN? List names of tables matching a LIKE pattern ÏÔʾ¿âÖбíµÄÁÐ±í¡£
.timeout MS Try opening locked tables for MS milliseconds ³¬Ê±Ê±¼ä,µ¥Î»:ºÁÃë
.width NUM NUM ... Set c


Ïà¹ØÎĵµ£º

sqliteµÄ°²×°

ʹÓð汾£ºsqlite-3.6.14.2
ÏÂÔصØÖ·£ºhttp://www.sqlite.org/sqlite-3.6.14.2.tar.gz
Ê×ÏȲο¼readmeµÄÌáʾ£º

    tar xzf sqlite.tar.gz    ;#  Unpack the source tree into "sqlite"
    mkdir bld      &nbs ......

Sqlite»ù´¡¼°ÆäÓëSQLServerÓï·¨²îÒì

sqlite¹Ù·½Õ¾
http://www.sqlite.org/
SQL Syntax
http://www.sqlite.org/lang.html
sqliteÖÐÎÄÕ¾
http://www.sqlite.com.cn/
http://www.sqlitechina.org/
½¨Á¢Êý¾Ý¿âµµ°¸
ÓÃsqlite3½¨Á¢Êý¾Ý¿âµÄ·½·¨ºÜ¼òµ¥£¬Ö»ÒªÔÚshellϼüÈ루ÒÔÏÂ$·ûºÅΪshellÌáʾºÅ£¬ÇëÎð¼üÈ룩£º
$ sqlite3 foo.db
Èç¹ûĿ¼ÏÂûÓÐfo ......

SQLiteÖеÄÈ«ÎÄËÑË÷

    °ÝGoogleµÄScott Hessͬ־Ëù´Í£¬SQLiteÒ²ÍƳöÁËÈ«ÎÄËÑË÷¹¦ÄÜ¡£
    SQLiteͨ¹ý½¨Á¢Ò»¸öÐéÄâ±í£¬½«ÊäÈëµÄÎÄ×Ö¸ù¾Ý¿Õ¸ñ¡¢±êµã·ûºÏµÈ¹æÔò½øÐзִʣ¬×éÖ¯³ÉÒ»¿ÃBÊ÷£¬ÒÔ´ËÀ´Ìá¸ßËÑË÷Ëٶȡ£
    ÈçºÎʹÓÃÕâÒ»¹¦ÄÜ£¬ÐÔÄÜÉÏÈçºÎ£¬´ó¼Ò¸÷×ÔÑо¿È¥°É¡£
    ÔÚÕâÀ ......

Qt£ºSQLite 3ÈëÃŽ̳Ì


OS X×Ô´Ó10.4ºó°ÑSQLiteÕâÌ×Ï൱³öÃûµÄÊý¾Ý¿âÈí¼þ£¬·Å½øÁË×÷ҵϵͳ¹¤¾ß¼¯Àï¡£OS X°ü×°µÄÊǵÚÈý°æµÄSQLite£¬ÓÖ³ÆSQLite3¡£ÕâÌ×Èí¼þÓм¸¸öÌØÉ«£º
Èí¼þÊôÓÚ¹«¹²²Æ£¨public domain£©£¬SQLite¿É˵ÊÇijÖÖ¡¸ÃÀµÂÈí¼þ¡¹£¨virtueware£©£¬×÷Õß±¾ÈË·ÅÆú×Å×÷Ȩ£¬¶ø¸øʹÓÃSQLiteµÄÈËÒÔϵġ¸×£¸£¡¹£¨blessing£©£º
May you do good an ......

SQLITEÓëACCESSÐÔÄܼòµ¥²âÊÔ¶Ô±È

Õâ¶Îʱ¼äÔÚ×öCMS£¨¿Í»§¹ÜÀíϵͳ£¬²»ÊÇÄÚÈݹÜÀí£©µÄ·ÃÎʹÜÀí¹¦ÄÜ£¬ÒªÇóʵÏÖ¶Ô·þÎñÌṩÉ豸£¬¿Í»§¶Ë£¬¼Æ·Ñ£¬È¨ÏÞÈÏÖ¤µÈÐÅÏ¢µÄ´æ´¢Í³¼Æ£¬Ô¶³Ì¹ÜÀí¡£ÒªÇóϵͳ·¢²¼Òª·½±ã£¬Ô¶³Ì¹ÜÀíÈí¼þÒªÅÜÔÚWINƽ̨¡£¿¼Âǵ½ÏµÍ³¹æÄ££¬¿Í»§ÒªÇó£¬×îºóÑ¡ÔñÁËWIN+ACCESSµÄ·½°¸£¬¶ø×î½üÓÖ·¢ÏÖÒ»¸öÃâ·ÑµÄSQLITE£¬¶øÇÒ¿ÉÄÜÔÚÒÔºóµÄÊÖ³ÖÉ豸ÉÏÓ㬻¨µã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ