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

SQLiteʹÓÃ

OS X×Ô´Ó10.4ºó°ÑSQLiteÕâÌ×Ï൱³öÃûµÄÊý¾Ý¿âÈí¼þ£¬·Å½øÁË×÷ҵϵͳ¹¤¾ß¼¯Àï¡£OS X°ü×°µÄÊǵÚÈý°æµÄSQLite£¬ÓÖ³ÆSQLite3¡£ÕâÌ×Èí¼þÓм¸¸öÌØÉ«£º
Èí¼þÊôÓÚ¹«¹²²Æ£¨public domain£©£¬SQLite¿É˵ÊÇijÖÖ¡¸ÃÀµÂÈí¼þ¡¹£¨virtueware£©£¬×÷Õß±¾ÈË·ÅÆú×Å×÷Ȩ£¬¶ø¸øʹÓÃSQLiteµÄÈËÒÔϵġ¸×£¸£¡¹£¨blessing£©£º
May you do good and not evil. Ô¸ÄãÐÐÉÆĪÐжñ
May you find forgiveness for yourself and forgive others. Ô¸ÄãÔ­ÁÂ×Ô¼º¿íË¡ËûÈË
May you share freely, never taking more than you give. Ô¸Äã¿íÐÄÓëÈË·ÖÏí£¬ËùÈ¡²»¶àÓÚÄãËùÊ©Óè
Ö§Ô®´ó¶àÊýµÄSQLÖ¸ÁÏÂÃæ»á¼òµ¥½éÉÜ£©¡£
Ò»¸öµµ°¸¾ÍÊÇÒ»¸öÊý¾Ý¿â¡£²»ÐèÒª°²×°Êý¾Ý¿â·þÎñÆ÷Èí¼þ¡£
ÍêÕûµÄUnicodeÖ§Ô®£¨Òò´ËûÓпçÓïϵµÄÎÊÌ⣩¡£
ËٶȺܿ졣
Ä¿Ç°ÔÚOS X 10.4ÀSQLiteÊÇÒÔ/usr/bin/sqlite3µÄÐÎʽ°ü×°£¬Ò²¾Í˵ÕâÊÇÒ»¸öÃüÁîÁй¤¾ß£¬±ØÐëÏÈ´ÓÖն˻ú£¨Terminal.app»òÆäËû³ÌÐò£©½øÈëshellÖ®ºó²ÅÄÜʹÓá£ÍøÂçÉÏÓÐһЩϢЭÖúʹÓÃSQLiteµÄÊÓ¾õ»¯¹¤¾ß£¬µ«Ëƺõ¶¼Ã»ÓÐÏñCocoaMySQL£¨ÅäºÏMySQLÊý¾Ý¿âʹÓã©ÄÇ°ãºÃÓ᣻òÐíËæʱÓоªÏ²Ò²Î´¿ÉÖª£¬ÒÔϽö½éÉÜÃüÁîÁеIJÙ×÷·½Ê½¡£
SQLite¹ËÃû˼ÒéÊÇÒÔSQLΪ»ù´¡µÄÊý¾Ý¿âÈí¼þ£¬SQLÊÇÒ»Ì×Ç¿´óµÄÊý¾Ý¿âÓïÑÔ£¬Ö÷Òª¸ÅÄîÊÇÓÉ¡¸Êý¾Ý¿â¡¹¡¢¡¸×ÊÁÏ±í¡¹£¨table£©¡¢¡¸²éѯָÁ£¨queries£©µÈµ¥Ôª×é³ÉµÄ¡¸¹ØÁªÐÔÊý¾Ý¿â¡¹£¨½øÒ»²½µÄ¸ÅÄî¿É²Î¿¼ÍøÂçÉϸ÷ÖÖ¹ØÓÚSQL¼°¹ØÁªÐÔÊý¾Ý¿âµÄÎļþ£©¡£ÒòΪSQLµÄ²éѯ¹¦ÄÜÇ¿´ó£¬Óï·¨Ò»Ö¶øÈëÃÅÈÝÒ×£¬Òò´Ë³ÉΪÏÖ½ñÖ÷Á÷Êý¾Ý¿âµÄ±ê×¼ÓïÑÔ£¨Î¢Èí¡¢OracleµÈ´ó³§µÄÊý¾Ý¿âÈí¼þ¶¼ÌṩSQLÓï·¨µÄ²éѯ¼°²Ù×÷£©¡£
ÒÔÏÂÎÒÃǾͽ¨Á¢Êý¾Ý¿â¡¢½¨Á¢×ÊÁÏ±í¼°Ë÷Òý¡¢ÐÂÔö×ÊÁÏ¡¢²éѯ×ÊÁÏ¡¢¸ü¸Ä×ÊÁÏ¡¢ÒƳý×ÊÁÏ¡¢sqlite3ÃüÁîÁÐÑ¡ÏîµÈ¼¸¸öÏîÄ¿×ö¼òµ¥µÄ½éÉÜ¡£
Ŀ¼
[Òþ²Ø]
1 ½¨Á¢Êý¾Ý¿âµµ°¸
2 ÔÚsqlite3ÌáʾÁÐϲÙ×÷
3 SQLµÄÖ¸Áî¸ñʽ
4 ½¨Á¢×ÊÁϱí
5 ½¨Á¢Ë÷Òý
6 ¼ÓÈëÒ»±Ê×ÊÁÏ
7 ²éѯ×ÊÁÏ
8 ÈçºÎ¸ü¸Ä»òɾ³ý×ÊÁÏ
9 ÆäËûsqliteµÄÌرðÓ÷¨
10 С½á
[±à¼­]
½¨Á¢Êý¾Ý¿âµµ°¸
ÓÃsqlite3½¨Á¢Êý¾Ý¿âµÄ·½·¨ºÜ¼òµ¥£¬Ö»ÒªÔÚshellϼüÈ루ÒÔÏÂ$·ûºÅΪshellÌáʾºÅ£¬ÇëÎð¼üÈ룩£º
$ sqlite3 foo.db
Èç¹ûĿ¼ÏÂûÓÐfoo.db£¬sqlite3¾Í»á½¨Á¢Õâ¸öÊý¾Ý¿â¡£sqlite3²¢Ã»ÓÐÇ¿ÖÆÊý¾Ý¿âµµÃûÒªÔõôȡ£¬Òò´ËÈç¹ûÄãϲ»¶£¬Ò²¿ÉÒÔÈ¡¸öÀýÈçfoo.icannameitwhateverilikeµÄµµÃû¡£
[±à¼­]
ÔÚsqlite3ÌáʾÁÐϲÙ×÷
½øÈëÁËsqlite3Ö®ºó£¬»á¿´µ½ÒÔÏÂÎÄ×Ö£º
S


Ïà¹ØÎĵµ£º

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

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

Sqlite DBʹÓÃÀý×Ó

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

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

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

SQLITE Ò»¸ö±íÖÐÊý¾Ý¸´ÖƵ½ÁíÒ»¸ö±íÖÐ

ÔÚSQLÖÐÓÐÈçÏÂÁ½ÖÖ·½·¨¿ÉÒÔʵÏÖ½«Ò»¸ö±íÖÐÊý¾Ýµ½ÁíÒ»¸ö±íÖÐ
1> select ... into new_tablename from ... where ...
2> insert (into) old_tablename select ... from ... where ...
Çø±ðÊÇÇ°Õß°ÑÊý¾Ý²åÈëÒ»¸öÐÂ±í£¨ÏȽ¨Á¢±í£¬ÔÙ²åÈëÊý¾Ý£©£¬
ºóÕßÊÇ°ÑÊý¾Ý²åÈëÒѾ­´æÔÚµÄÒ»¸ö±íÖУ¬ÎÒ¸öÈËϲ»¶ºóÕߣ¬Òò ......

SQLiteÊý¾ÝÀàÐÍ

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