{"id":210498,"date":"2022-08-23T13:53:05","date_gmt":"2022-08-23T05:53:05","guid":{"rendered":"https:\/\/www.keaglegz.com\/210498.html"},"modified":"2022-08-23T13:53:05","modified_gmt":"2022-08-23T05:53:05","slug":"sqllite%e6%95%b0%e6%8d%ae%e5%ba%93%e5%9f%ba%e7%a1%80%e6%95%99%e7%a8%8b-2","status":"publish","type":"post","link":"https:\/\/www.dongwubaike.cn\/fanhao\/210498.html","title":{"rendered":"SQLlite\u6570\u636e\u5e93\u57fa\u7840\u6559\u7a0b"},"content":{"rendered":"\n<p>SQLlite\u6570\u636e\u5e93\u53ef\u80fd\u662f\u76ee\u524d\u6765\u8bf4\u6700\u8f7b\u91cf\u7ea7\u3001\u4f7f\u7528\u6700\u4e3a\u5e7f\u6cdb\u7684SQL\u6570\u636e\u5e93\u3002\u5b83\u672c\u8eab\u53c8\u662f\u5f00\u6e90\u7684\uff0c\u81ea\u8eab\u5305\u542b\u5728C\u4e2d\u7684\u4e00\u4e2a\u76f8\u5bf9\u5c0f\u7684\u5e93\u4e2d\uff0c\u652f\u6301ACID\u4e8b\u52a1\u3001\u96f6\u914d\u7f6e\u3001\u50a8\u5b58\u5728\u5355\u4e00\u78c1\u76d8\u6587\u4ef6\u4e2d\u7684\u4e00\u4e2a\u5b8c\u6574\u7684\u6570\u636e\u5e93\uff0c\u5b83\u6240\u4f7f\u7528\u7684\u8d44\u6e90\u975e\u5e38\u4f4e\uff0c\u5728\u51e0\u767eK\u7684\u5185\u5b58\u73af\u5883\u4e0b\u4e5f\u53ef\u4ee5\u7a33\u5b9a\u8fd0\u884c\uff0c\u800c\u76ee\u524d\u652f\u6301\u7684\u6570\u636e\u5927\u5c0f\u52302TB\uff0c\u81ea\u8eab\u53c8\u6ca1\u6709\u4ec0\u4e48\u989d\u5916\u7684\u4f9d\u8d56\u3001\u79fb\u690d\u6027\u597d\u3001\u652f\u6301\u591a\u79cd\u5f00\u53d1\u8bed\u8a00\uff0c\u6240\u4ee5SQLlite\u88ab\u5e7f\u6cdb\u8fd0\u7528\u5728\u5404\u4e2a\u7cfb\u7edf\u5e73\u53f0\u4e0a\u3001\u4e00\u4e9b\u8f6f\u4ef6\u5e94\u7528\u3001\u5c0f\u578b\u7f51\u7ad9\u3001\u4ee5\u53ca\u5d4c\u5165\u5f0f\u5e94\u7528\u3001\u7b80\u5355\u7684\u6570\u636e\u5206\u6790\u3001\u4ee3\u66ff\u78c1\u76d8\u4e34\u65f6\u6587\u4ef6\u3001\u6587\u4ef6\u6863\u6848\u3001\u7f13\u5b58\u7b49\u7b49\u3002\u5728Unix\u7cfb\u7edf\u4e0b\u4e00\u822c\u9ed8\u8ba4\u5c31\u662f\u6709\u5b89\u88c5\u8fc7\u7684\uff0c\u5373\u4f7f\u662f\u6ca1\u6709\u5b89\u88c5\u4e5f\u53ef\u4ee5\u540c\u5728Windows\u3001macOS\u4e2d\u4e00\u6837\u5230\u5b98\u7f51\uff08http:\/\/www.sqlite.org\/download.html\uff09\u4e0a\u628a\u4e8c\u8fdb\u5236\u5305\u4e0b\u8f7d\u4e0b\u6765\u89e3\u538b\u540e\u914d\u7f6e\u597dPATH\u73af\u5883\u53d8\u91cf\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u6216\u8005\u662f\u4e0b\u8f7d\u6e90\u7801\u5305\u7f16\u8bd1\u4ea6\u53ef\uff0c\u5e73\u65f6\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u4f7f\u7528shell\u76f4\u63a5\u4ea4\u4e92\u6216\u8005\u4f7f\u7528\u5404\u4e2agui\u6765\u4f7f\u7528\u3002\u5efa\u7acb\u597d\u7684\u4e00\u4e2aschema\u5728SQLlite\u5c31\u662f\u4e00\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u6ce8\u610f\u4e00\u65e6\u5220\u9664\u4e86\u8868\u7684\u6570\u636e\u6587\u4ef6\u6570\u636e\u5c31\u4f1a\u4e22\u5931\uff0c\u81f3\u4e8e\u4f7f\u7528\u4e5f\u5f88\u7b80\u5355<\/p>\n<div>\n<div>\n<div>\n<div><code>[root@localhost&nbsp;data]#&nbsp;sqlite3&nbsp;#\u8c03\u7528\u4e8c\u8fdb\u5236\u6587\u4ef6\u76f4\u63a5\u8fdb\u5165\u547d\u4ee4\u4ea4\u4e92\u754c\u9762<\/code><\/div>\n<div><code>[root@localhost&nbsp;data]#&nbsp;sqlite3&nbsp;\/data\/my_test.db&nbsp;#\u5efa\u7acb\u4e00\u4e2a\u540d\u4e3amy_test\u7684<\/code><code>schema<\/code><code>\u540e\u7f00\u7528\u4ec0\u4e48\u90fd\u53ef\u4ee5\u4f46\u662f\u8981\u6ce8\u610f\u4e0d\u540c\u7684\u6587\u4ef6\u540d\u540e\u7f00\u76f8\u540c\u7684\u6587\u4ef6\u540d\u5c31\u662f\u4e0d\u540c\u7684\u6587\u4ef6\uff0c\u662f\u5b8c\u51682\u4e2a\u5b8c\u5168\u72ec\u7acb\u7684<\/code><code>schema<\/code><code>\uff0c\u5efa\u8bae\u662f\u7528.db\u662f\u6807\u51c6\u7684\u5bb9\u6613<a href=\"https:\/\/www.dongwubaike.cn\/fanhao\/tag\/%e5%8c%ba%e5%88%86\" title=\"View all posts in \u533a\u5206\" target=\"_blank\">\u533a\u5206<\/a>\uff0c\u5982\u679c\u6709\u8fd9\u4e2a\u6587\u4ef6\u540d\u7684<\/code><code>schema<\/code><code>\u5219\u4e0d\u521b\u5efa\u6570\u636e\u6587\u4ef6\uff0c\u5efa\u597d\u4e86\u9ed8\u8ba4\u6709\u4e00\u4e2amain\u7684<\/code><code>database<\/code><code>\uff0c\u5176\u6b21\u9ed8\u8ba4\u5efa\u7acb\u7684<\/code><code>schema<\/code><code>\u662f\u4e0d\u52a0\u5bc6\u7684\uff0c\u5982\u679c\u662f\u91cd\u8981\u6570\u636e\u5efa\u8bae\u52a0\u5bc6<\/code><\/div>\n<div><code>[root@localhost&nbsp;data]#&nbsp;sqlite3&nbsp;\/data\/my_test.db&nbsp;#\u8fdb\u5165my_test\u7684<\/code><code>schema<\/code><code>\uff0c\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u662f\u65b0\u5efa\u7acb\u7684<\/code><code>schema<\/code><code>\u5728\u5176\u4e2d\u6ca1\u6709\u5efa\u7acb\u4efb\u4f55\u9879\u76ee\u65f6\u662f\u4e0d\u4f1a\u4ea7\u751f\u76f8\u5e94\u7684\u6570\u636e\u6587\u4ef6\u7684<\/code><\/div>\n<div><code>SQLite&nbsp;version&nbsp;3.6.20<\/code><\/div>\n<div><code>Enter&nbsp;<\/code><code>\".help\"<\/code>&nbsp;<code>for<\/code>&nbsp;<code>instructions<\/code><\/div>\n<div><code>Enter&nbsp;SQL&nbsp;statements&nbsp;terminated&nbsp;<\/code><code>with<\/code>&nbsp;<code>a&nbsp;<\/code><code>\";\"<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;.<\/code><code>database<\/code>&nbsp;<code>#\u67e5\u770b\u5f53\u524d\u7684<\/code><code>schema<\/code><code>\u4e0b\u7684<\/code><code>database<\/code><code>\u4fe1\u606f<\/code><\/div>\n<div><code>seq&nbsp; <\/code><code>name<\/code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<code>file&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/code><\/div>\n<div><code>---&nbsp; ---------------&nbsp; ----------------------------------------------------------<\/code><\/div>\n<div><code>0&nbsp; &nbsp; main&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/data\/my_test.db<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;.help&nbsp;#\u5e2e\u52a9\u4fe1\u606f<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;.exit&nbsp;#\u9000\u51fa<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;<\/code><code>SELECT<\/code>&nbsp;<code>*&nbsp;<\/code><code>FROM<\/code>&nbsp;<code>sqlite_master;&nbsp;#\u7cfb\u7edf\u8868\uff0c\u5728SQLite\u4e2d\u552f\u4e00\u7684\u4e00\u5f20\uff0c\u662f\u53ea\u8bfb\u7684\uff0c\u662f\u65e0\u6cd5\u5220\u9664\u7684\u6267\u884c\u5220\u9664\u8be5\u8868\u662f\u662f\u5728\u505a\u7c7b\u4f3c\u4e8eflush\u7684\u64cd\u4f5c<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;.show<\/code><\/div>\n<div><code>&nbsp; &nbsp; &nbsp;<\/code><code>echo:&nbsp;<\/code><code>off<\/code><\/div>\n<div><code>&nbsp; <\/code><code>explain:&nbsp;<\/code><code>off<\/code><\/div>\n<div><code>&nbsp; <\/code><code>headers:&nbsp;<\/code><code>off<\/code><\/div>\n<div><code>&nbsp; &nbsp; &nbsp;<\/code><code>mode:&nbsp;list<\/code><\/div>\n<div><code>nullvalue:&nbsp;<\/code><code>\"\"<\/code><\/div>\n<div><code>&nbsp; &nbsp;<\/code><code>output<\/code><code>:&nbsp;stdout<\/code><\/div>\n<div><code>separator:&nbsp;<\/code><code>\"|\"<\/code><\/div>\n<div><code>&nbsp; &nbsp; <\/code><code>width:<\/code><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>\u4ee5\u4e0a\u5c31\u662fSQLlite\u6570\u636e\u5e93\u6bd4\u8f83\u5e38\u7528\u7684\u4ea4\u4e92\u547d\u4ee4\uff0c\u81f3\u4e8e\u5176\u4ed6\u66f4\u591a\u53ef\u4ee5\u901a\u8fc7help\u67e5\u770b\uff0c\u5728\u8fd9\u4e2a\u5c31\u4e0d\u505a\u8fc7\u591a\u7684\u4ecb\u7ecd\uff0c\u5728\u5e73\u65f6\u53ef\u4ee5\u901a\u8fc7\u67e5\u8be2SQLlite\u6570\u636e\u5e93\u4e2d\u552f\u4e00\u7684\u4e00\u5f20\u7cfb\u7edf\u8868sqlite_master\u8868\u83b7\u77e5\u5f53\u524d\u7684schema\u4e0b\u6240\u6709\u8868\u3001\u89c6\u56fe\u3001\u7d22\u5f15\u3001\u89e6\u53d1\u5668\u76f8\u5173\u7b49\u7b49\u4fe1\u606f\uff0c\u5728sqlite_master\u8868\u4e2d\u67094\u4e2a\u5217\uff1a<\/p>\n<div>\n<div>\n<div>\n<div><code>type<\/code><code>\u5217\u8bb0\u5f55\u4e86\u9879\u76ee\u7684\u7c7b\u578b\uff0c\u5982\u8868\u3001\u89c6\u56fe\u3001\u7d22\u5f15\u3001\u89e6\u53d1\u5668<\/code><\/div>\n<div><code>name\u5217\u8bb0\u5f55\u4e86\u9879\u76ee\u7684\u540d\u79f0\uff0c\u5982\u8868\u540d\u3001\u7d22\u5f15\u540d\u3001\u89c6\u56fe\u540d\u7b49<\/code><\/div>\n<div><code>tbl_name\u5217\u8bb0\u5f55\u6240\u4ece\u5c5e\u7684\u8868\u540d\uff0c\u5982\u7d22\u5f15\u6240\u5728\u7684\u8868\u540d\u3002\u5bf9\u4e8e\u8868\u6765\u8bf4\uff0c\u8be5\u5217\u5c31\u662f\u8868\u540d\u672c\u8eab<\/code><\/div>\n<div><code>rootpage\u5217\u8bb0\u5f55\u9879\u76ee\u5728\u6570\u636e\u5e93\u9875\u4e2d\u5b58\u50a8\u7684\u7f16\u53f7\u3002\u5bf9\u4e8e\u89c6\u56fe\u8be5\u5217\u503c\u4e3a0\uff0c\u89e6\u53d1\u5668\u8be5\u5217\u503cNULL\u3002<\/code><\/div>\n<div><code>sql\u5217\u8bb0\u5f55\u5efa\u8868\u7684DDL<\/code><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>\u4e00\u4e9b\u5e38\u7528\u7684\u7cfb\u7edf\u8868\u67e5\u8be2:<\/p>\n<div>\n<div>\n<div>\n<div><code>sqlite&gt;&nbsp;<\/code><code>SELECT<\/code>&nbsp;<code>*&nbsp;<\/code><code>FROM<\/code>&nbsp;<code>sqlite_master&nbsp;<\/code><code>WHERE<\/code>&nbsp;<code>type&nbsp;=&nbsp;<\/code><code>'table'<\/code><code>;&nbsp;#\u67e5\u770b\u5f53\u524d<\/code><code>schema<\/code><code>\u4e0b\u6240\u6709\u8868\u4fe1\u606f<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;<\/code><code>SELECT<\/code>&nbsp;<code>*&nbsp;<\/code><code>FROM<\/code>&nbsp;<code>sqlite_master&nbsp;<\/code><code>WHERE<\/code>&nbsp;<code>rootpage&nbsp;=&nbsp;0;&nbsp;#\u67e5\u770b\u5f53\u524d<\/code><code>schema<\/code><code>\u4e0b\u6240\u6709\u7684\u89c6\u56fe\u4fe1\u606f<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;<\/code><code>SELECT<\/code>&nbsp;<code>*&nbsp;<\/code><code>FROM<\/code>&nbsp;<code>sqlite_master&nbsp;<\/code><code>WHERE<\/code>&nbsp;<code>rootpage&nbsp;<\/code><code>IS<\/code>&nbsp;<code>NULL<\/code><code>;&nbsp;#\u67e5\u770b\u5f53\u524d<\/code><code>schema<\/code><code>\u4e0b\u6240\u6709\u7684\u89c6\u56fe\u4fe1\u606f<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;<\/code><code>SELECT<\/code>&nbsp;<code>sql&nbsp;<\/code><code>FROM<\/code>&nbsp;<code>sqlite_master&nbsp;<\/code><code>WHERE<\/code>&nbsp;<code>type&nbsp;=&nbsp;<\/code><code>'table'<\/code>&nbsp;<code>AND<\/code>&nbsp;<code>tbl_name&nbsp;=&nbsp;<\/code><code>'tablename'<\/code><code>;&nbsp;#\u67e5\u770btablenameDDL\u6216\u8005\u76f4\u63a5\u4f7f\u7528schma\u547d\u4ee4\u67e5\u770b<\/code><\/div>\n<div><code>sqlite&gt;&nbsp;.<\/code><code>schema<\/code>&nbsp;<code>sqlite_master<\/code><\/div>\n<div><code>CREATE<\/code>&nbsp;<code>TABLE<\/code>&nbsp;<code>sqlite_master&nbsp;(<\/code><\/div>\n<div><code>&nbsp; <\/code><code>type&nbsp;text,<\/code><\/div>\n<div><code>&nbsp; <\/code><code>name<\/code>&nbsp;<code>text,<\/code><\/div>\n<div><code>&nbsp; <\/code><code>tbl_name&nbsp;text,<\/code><\/div>\n<div><code>&nbsp; <\/code><code>rootpage&nbsp;<\/code><code>integer<\/code><code>,<\/code><\/div>\n<div><code>&nbsp; <\/code><code>sql&nbsp;text<\/code><\/div>\n<div><code>);<\/code><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<p>\u5728SQLlite\u76ee\u524d\u4e0b\u67095\u79cd\u6570\u636e\u5b58\u50a8\u7c7b\u578b\uff1a<\/p>\n<table>\n<tbody>\n<tr>\n<th style=\"-ms-word-break: break-all;\" width=\"152\">\u6570\u636e\u5b58\u50a8\u7c7b\u578b<\/th>\n<th style=\"-ms-word-break: break-all;\" width=\"591\">\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"152\">NULL<\/td>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"591\">\u503c\u662f\u4e00\u4e2a NULL \u503c<\/td>\n<\/tr>\n<tr>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"152\">INTEGER<\/td>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"591\">\u503c\u662f\u4e00\u4e2a\u5e26\u7b26\u53f7\u7684\u6574\u6570\uff0c\u6839\u636e\u503c\u7684\u5927\u5c0f\u5b58\u50a8\u5728 1\u30012\u30013\u30014\u30016 \u6216 8 \u5b57\u8282\u4e2d<\/td>\n<\/tr>\n<tr>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"152\">REAL<\/td>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"591\">\u503c\u662f\u4e00\u4e2a\u6d6e\u70b9\u503c\uff0c\u5b58\u50a8\u4e3a 8 \u5b57\u8282\u7684 IEEE \u6d6e\u70b9\u6570\u5b57<\/td>\n<\/tr>\n<tr>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"152\">TEXT<\/td>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"591\">\u503c\u662f\u4e00\u4e2a\u6587\u672c\u5b57\u7b26\u4e32\uff0c\u4f7f\u7528\u6570\u636e\u5e93\u7f16\u7801\uff08UTF-8\u3001UTF-16BE \u6216 UTF-16LE\uff09\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"152\">BLOB<\/td>\n<td style=\"-ms-word-break: break-all;\" valign=\"top\" width=\"591\">\u503c\u662f\u4e00\u4e2a blob \u6570\u636e\uff0c\u5b8c\u5168\u6839\u636e\u5b83\u7684\u8f93\u5165\u5b58\u50a8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u800cSQLlite\u5176\u81ea\u8eab\u6709\u652f\u6301\u5217\u7684\u4eb2\u548c\u6570\u636e\u7c7b\u578b\u3001\u4eb2\u548c\u6570\u636e\u540d\u79f0\u6982\u5ff5\u3002\u4efb\u4f55\u5217\u4ecd\u7136\u53ef\u4ee5\u5b58\u50a8\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u636e\uff0c\u5f53\u6570\u636e\u63d2\u5165\u65f6\uff0c\u8be5\u5b57\u6bb5\u7684\u6570\u636e\u5c06\u4f1a\u4f18\u5148\u91c7\u7528\u4eb2\u7f18\u7c7b\u578b\u4f5c\u4e3a\u8be5\u503c\u7684\u5b58\u50a8\u65b9\u5f0f\uff0c<\/p>\n<p>\u5982\u5404\u79cdint\u578b\u5b58\u5165INTEGER\u4e2d\uff0c\u5728\u5efa\u597d\u7684\u8868\u4e2d\u7528\u7684\u662fINTEGER\u7c7b\u578b\uff0c\u6216\u8005\u8fd8\u662f\u7528\u5176\u5b83\u7684\u6570\u636e\u7c7b\u578b\u540d\u79f0\uff0c\u4f46\u662f\u5b9e\u9645\u4e2d\u8fd8\u662f\u5b58\u5728INTEGER\u4e2d\uff0c\u8981\u6ce8\u610f\u7684\u662fSQLlite\u672c\u8eab\u4ec5\u4ec5\u662f\u4e00\u4e2a\u5f88\u5c0f\u7684\u8f7b\u91cf\u7ea7\u6570\u636e\u5e93\u5e73\u65f6\u4e0d\u8981\u628aSQLlite\u5f53\u6210\u5176\u5b83\u5927\u578b\u6570\u636e\u6765\u4f7f\u7528\uff0c\u5176\u6b21\u56e0\u4e3aSQLlite\u7684\u6570\u636e\u6587\u4ef6\u4e00\u822c\u90fd\u662f\u4ee5\u6587\u4ef6\u7684\u5f62\u5f0f\u5b58\u50a8\u7684\uff0c\u800c\u5728\u5e73\u65f6\u5c31\u53ef\u4ee5\u901a\u8fc7\u5bf9\u5176\u6587\u4ef6\u6765\u8fdb\u884c\u538b\u7f29\u5907\u4efd\u5373\u53ef\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/cuohei.com\/innodb\/uploads\/allimg\/linux14\/logo.gif\" data-fancybox=\"images\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/cuohei.com\/innodb\/uploads\/allimg\/linux14\/logo.gif\" width=\"15\" height=\"17\" alt=\"SQLlite\u6570\u636e\u5e93\u57fa\u7840\u6559\u7a0b\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQLlite\u6570\u636e\u5e93\u53ef\u80fd\u662f\u76ee\u524d\u6765\u8bf4\u6700\u8f7b\u91cf\u7ea7\u3001\u4f7f\u7528\u6700\u4e3a\u5e7f\u6cdb\u7684SQL\u6570\u636e\u5e93\u3002\u5b83\u672c\u8eab\u53c8\u662f\u5f00\u6e90\u7684\uff0c\u81ea\u8eab\u5305\u542b\u5728C\u4e2d\u7684\u4e00\u4e2a\u76f8\u5bf9\u5c0f\u7684\u5e93\u4e2d\uff0c\u652f\u6301ACID\u4e8b\u52a1\u3001\u96f6\u914d\u7f6e\u3001\u50a8\u5b58\u5728\u5355\u4e00\u78c1\u76d8\u6587\u4ef6\u4e2d\u7684\u4e00\u4e2a\u5b8c\u6574\u7684\u6570\u636e\u5e93\uff0c\u5b83\u6240\u4f7f\u7528\u7684\u8d44\u6e90\u975e\u5e38\u4f4e\uff0c\u5728\u51e0\u767eK\u7684\u5185\u5b58\u73af\u5883\u4e0b\u4e5f\u53ef\u4ee5\u7a33\u5b9a\u8fd0\u884c\uff0c\u800c\u76ee\u524d\u652f\u6301\u7684\u6570\u636e\u5927\u5c0f\u52302TB\uff0c\u81ea\u8eab\u53c8\u6ca1\u6709\u4ec0\u4e48\u989d\u5916\u7684\u4f9d\u8d56\u3001\u79fb\u690d\u6027\u597d\u3001\u652f\u6301\u591a\u79cd\u5f00\u53d1\u8bed\u8a00\uff0c\u6240\u4ee5SQLlite\u88ab\u5e7f\u6cdb\u8fd0\u7528\u5728\u5404\u4e2a\u7cfb\u7edf\u5e73\u53f0\u4e0a\u3001\u4e00\u4e9b\u8f6f\u4ef6\u5e94\u7528\u3001\u5c0f\u578b\u7f51\u7ad9\u3001\u4ee5\u53ca\u5d4c\u5165\u5f0f\u5e94\u7528\u3001\u7b80\u5355\u7684\u6570\u636e\u5206\u6790\u3001\u4ee3\u66ff\u78c1\u76d8\u4e34\u65f6\u6587\u4ef6\u3001\u6587\u4ef6\u6863\u6848\u3001\u7f13\u5b58\u7b49\u7b49\u3002\u5728Unix\u7cfb\u7edf\u4e0b\u4e00\u822c\u9ed8\u8ba4\u5c31\u662f\u6709\u5b89\u88c5\u8fc7\u7684\uff0c\u5373\u4f7f\u662f\u6ca1\u6709\u5b89\u88c5\u4e5f\u53ef\u4ee5\u540c\u5728Windows\u3001macOS\u4e2d\u4e00\u6837\u5230\u5b98\u7f51\uff08http:\/\/www.sqlite.org\/download.html\uff09\u4e0a\u628a\u4e8c\u8fdb\u5236\u5305\u4e0b\u8f7d\u4e0b\u6765\u89e3\u538b\u540e\u914d\u7f6e\u597dPATH\u73af\u5883\u53d8\u91cf\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u6216\u8005\u662f\u4e0b\u8f7d\u6e90\u7801\u5305\u7f16\u8bd1\u4ea6\u53ef\uff0c\u5e73\u65f6\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u4f7f\u7528shell\u76f4\u63a5\u4ea4\u4e92\u6216\u8005\u4f7f\u7528\u5404\u4e2agui\u6765\u4f7f\u7528\u3002\u5efa\u7acb\u597d\u7684\u4e00\u4e2aschema\u5728SQLlite\u5c31\u662f\u4e00\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u6ce8\u610f\u4e00\u65e6\u5220\u9664\u4e86\u8868\u7684\u6570\u636e\u6587\u4ef6\u6570\u636e\u5c31\u4f1a\u4e22\u5931\uff0c\u81f3\u4e8e\u4f7f\u7528\u4e5f\u5f88\u7b80\u5355<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[100065],"class_list":["post-210498","post","type-post","status-publish","format-standard","hentry","tag-100065"],"_links":{"self":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/210498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/comments?post=210498"}],"version-history":[{"count":0,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/210498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/media?parent=210498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/categories?post=210498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/tags?post=210498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}