{"id":3959,"date":"2026-09-05T09:45:22","date_gmt":"2026-09-05T01:45:22","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=3959"},"modified":"2026-09-12T15:35:46","modified_gmt":"2026-09-12T07:35:46","slug":"android-studio%e6%9f%a5%e7%9c%8bsqlite%e6%95%b0%e6%8d%ae%e5%ba%93%e5%ae%8c%e5%85%a8%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=3959","title":{"rendered":"Android Studio\u67e5\u770bSQLite\u6570\u636e\u5e93\u5b8c\u5168\u6307\u5357"},"content":{"rendered":"<section id=\"wenyan\" style=\"font-family: system-ui, 'Apple Color Emoji', 'Segoe UI', 'Segoe UI Symbol', 'Noto Sans', Roboto, sans-serif; line-height: 1.75; font-size: 16px; color: #000000; caret-color: #000000;\" data-provider=\"WenYan\">\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e00\u3001\u5148\u641e\u6e05\u695a\uff1a\u6570\u636e\u5e93\u5230\u5e95\u85cf\u5728\u54ea<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u77e5\u8bc6\u70b9 1\uff5cSQLite \u6570\u636e\u5e93\u5c31\u662f\u4e00\u4e2a\u666e\u901a\u6587\u4ef6<\/h3>\n<p style=\"margin: 1em 0px;\">\u300a\u6570\u636e\u5e93\u5e94\u7528\u6280\u672f\u300b\u91cc\u7684 MySQL \u6709\u670d\u52a1\u8fdb\u7a0b\u3001\u6709\u8d26\u53f7\u5bc6\u7801\u3001\u8981\u8fde\u7aef\u53e3\u3002Android \u7684 SQLite <strong>\u6ca1\u6709\u670d\u52a1<\/strong>\uff0c\u6574\u4e2a\u6570\u636e\u5e93\u5c31\u662f\u5e94\u7528\u79c1\u6709\u76ee\u5f55\u4e0b\u7684<strong>\u4e00\u4e2a\u6587\u4ef6<\/strong>\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/data\/data\/&lt;\u5e94\u7528\u7a0b\u5e8f\u5305\u540d&gt;\/databases\/&lt;\u5e93\u540d&gt;.db\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 1\uff5c\u63a8\u5bfc\u79d2\u54d2\u5feb\u9012\u7684\u6570\u636e\u5e93\u5b8c\u6574\u8def\u5f84<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u4e09\u4e2a\u4fe1\u606f\u62fc\u51fa\u6765\uff1a<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u4fe1\u606f<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u6765\u6e90<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5305\u540d<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>app\/build.gradle<\/code> \u7684 <code>applicationId<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>edu.cdp.android.day07<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5e93\u540d<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>DbConstants.DB_NAME<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>miaoda.db<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u56fa\u5b9a\u76ee\u5f55<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u7cfb\u7edf\u7ea6\u5b9a<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>\/data\/data\/<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\">\u6240\u4ee5\u672c\u8bfe\u5de5\u7a0b\u7684\u5e93\u6587\u4ef6\u5b8c\u6574\u8def\u5f84\u662f\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">\/data\/data\/edu.cdp.android.day07\/databases\/miaoda.db\n<\/code><\/pre>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u63d0\u793a\uff1a\u4e0d\u786e\u5b9a\u5305\u540d\u65f6\uff0c\u522b\u7ffb\u4ee3\u7801\u731c\uff0c\u76f4\u63a5\u770b\u8fd0\u884c\u7ed3\u679c\u2014\u2014\u793a\u4f8b\u5de5\u7a0b <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">MainActivity.runCheck()<\/code> \u91cc\u6709\u4e00\u884c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">db.getPath()<\/code>\uff0c\u4f1a\u628a\u771f\u5b9e\u8def\u5f84\u6253\u5370\u5230\u754c\u9762\u548c Logcat\uff0c\u4ee5\u5b83\u4e3a\u51c6\u3002<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px;\"><strong>\u8865\u5145<\/strong>\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\/data\/data\/&lt;\u5305\u540d&gt;<\/code> \u548c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\/data\/user\/0\/&lt;\u5305\u540d&gt;<\/code> \u662f<strong>\u540c\u4e00\u4e2a\u76ee\u5f55<\/strong>\uff08\u591a\u7528\u6237\u7684 0 \u53f7\u7528\u6237\u5c31\u662f\u673a\u4e3b\uff09\uff0c\u5728 Device Explorer \u91cc\u770b\u5230\u54ea\u4e2a\u90fd\u4e00\u6837\uff0c\u522b\u4ee5\u4e3a\u662f\u4e24\u4e2a\u6587\u4ef6\u3002<\/p>\n<hr \/>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u77e5\u8bc6\u70b9 2\uff5c\u4e3a\u4ec0\u4e48\u4f60&#8221;\u770b\u4e0d\u5230&#8221;\u8fd9\u4e2a\u6587\u4ef6<\/h3>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\/data\/data\/<\/code> \u4e0b\u6bcf\u4e2a\u5e94\u7528\u76ee\u5f55\u7684\u6743\u9650\u662f <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">drwx------<\/code>\uff08\u53ea\u6709\u5e94\u7528\u81ea\u5df1\u548c root \u80fd\u8fdb\uff09\u3002\u6240\u4ee5\uff1a<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section><strong>\u771f\u673a\uff08\u672a root\uff09<\/strong>\uff1a\u666e\u901a\u5e94\u7528\u4e92\u76f8\u770b\u4e0d\u5230\uff0c\u6587\u4ef6\u7ba1\u7406\u5668\u4e5f\u770b\u4e0d\u5230\uff1b<\/section>\n<\/li>\n<li>\n<section><strong>debug \u5305\uff08Android Studio \u76f4\u63a5\u8fd0\u884c\u7684\u5305\uff09<\/strong>\uff1a\u7cfb\u7edf\u7ed9\u8c03\u8bd5\u5668\u5f00\u4e86\u540e\u95e8\uff08<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">run-as<\/code> \u673a\u5236\uff09\uff0cAndroid Studio \u7684\u6587\u4ef6\u7a97\u53e3\u56e0\u6b64\u80fd\u8fdb debug \u5305\u7684\u76ee\u5f55\uff1b<\/section>\n<\/li>\n<li>\n<section><strong>\u6a21\u62df\u5668 \/ \u5df2 root \u8bbe\u5907<\/strong>\uff1a\u5b8c\u5168\u53ef\u89c1\u3002<\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 2\uff5c\u7528\u547d\u4ee4\u4eb2\u773c\u770b\u4e00\u6b21\u6743\u9650<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">Android Studio \u5e95\u90e8\u6253\u5f00 Terminal\uff08\u6216\u547d\u4ee4\u884c\u6267\u884c <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">adb shell<\/code>\uff09\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-bash\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb\u00a0shell\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">ls<\/span>\u00a0-l\u00a0\/data\/data\/edu.cdp.android.day07\/databases\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u5178\u578b\u8f93\u51fa\uff08\u771f\u673a debug \u5305\uff09\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">drwxrwx--x\u00a02\u00a0u0_a152\u00a0u0_a152\u00a04096\u00a02026-09-05\u00a008:56\u00a0.\n-rw-rw----\u00a01\u00a0u0_a152\u00a0u0_a152\u00a028672\u00a02026-09-05\u00a008:56\u00a0miaoda.db\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">u0_a152<\/code> \u5c31\u662f\u8fd9\u4e2a\u5e94\u7528\u7684 Linux \u7528\u6237\uff0c\u522b\u7684\u7528\u6237\u6ca1\u6709 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">r<\/code> \u6743\u9650\u2014\u2014\u8fd9\u5c31\u662f&#8221;\u6587\u4ef6\u660e\u660e\u5728\uff0c\u5374\u6253\u4e0d\u5f00&#8221;\u7684\u6839\u672c\u539f\u56e0\u3002<\/p>\n<hr \/>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e8c\u3001\u603b\u89c8\uff1a\u56db\u79cd\u67e5\u770b\u65b9\u6848\u600e\u4e48\u9009<\/span><\/h2>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u65b9\u6848<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5de5\u5177<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u9002\u7528\u573a\u666f<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u4f18\u70b9<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5c40\u9650<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u2460 \u5bfc\u51fa\u6587\u4ef6 + SQLiteStudio<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">Device Explorer + SQLiteStudio<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8bfe\u5802\u4e3b\u7ebf\uff0c\u79bb\u7ebf\u7ec6\u770b\u3001\u6539\u6570\u636e<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u53ef\u7559\u5b58\u3001\u53ef\u79bb\u7ebf\u3001\u529f\u80fd\u5168<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8981\u624b\u52a8\u5bfc\u51fa\uff0c\u6ce8\u610f WAL\uff08\u89c1\u77e5\u8bc6\u70b9 5\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u2461 Database Inspector<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">Android Studio \u81ea\u5e26<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5feb\u901f\u786e\u8ba4&#8221;\u6570\u636e\u5199\u8fdb\u53bb\u6ca1&#8221;<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u96f6\u5bfc\u51fa\u3001\u5b9e\u65f6\u5237\u65b0\u3001\u53ef\u76f4\u63a5\u6539<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8bbe\u5907\u9700 <strong>API 26+<\/strong>\uff0c\u53ea\u5bf9\u8fd0\u884c\u4e2d\u7684\u8fdb\u7a0b<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u2462 adb \u547d\u4ee4\u884c<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>run-as<\/code> + <code>adb pull<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u771f\u673a\u65e0 root\u3001\u60f3\u5199\u6210\u4e00\u952e\u811a\u672c<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u53ef\u811a\u672c\u5316\u3001\u6700\u53ef\u9760<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8981\u4f1a\u547d\u4ee4\u884c\uff0cWindows \u6709\u6362\u884c\u7b26\u5751<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u2463 \u5e94\u7528\u5185\u5bfc\u51fa<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u81ea\u5df1\u5199 Java \u5de5\u5177\u7c7b<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u515c\u5e95\u65b9\u6848\uff0c\u7b54\u8fa9\u6f14\u793a\u539f\u7406<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e0d\u4f9d\u8d56\u4efb\u4f55\u5de5\u5177<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8981\u52a0\u4ee3\u7801<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\">\u8bfe\u5802\u5efa\u8bae\uff1a<strong>\u5148\u7528\u65b9\u6848\u2461\u786e\u8ba4\u6570\u636e\uff0c\u518d\u7528\u65b9\u6848\u2460\u628a\u6587\u4ef6\u5bfc\u51fa\u6765\u770b\u7ed3\u6784<\/strong>\uff0c\u65b9\u6848\u2462\u2463\u4f5c\u4e3a\u62d3\u5c55\u3002<\/p>\n<hr \/>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e09\u3001\u65b9\u6848\u4e00\uff1aDevice Explorer \u5bfc\u51fa + SQLiteStudio \u67e5\u770b\uff08\u4e3b\u7ebf\uff09<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">3.1 \u5de5\u5177\u51c6\u5907\uff1a\u5b89\u88c5 SQLiteStudio<\/h3>\n<p style=\"margin: 1em 0px;\">SQLiteStudio \u662f\u514d\u8d39\u5f00\u6e90\u7684 SQLite \u56fe\u5f62\u5316\u7ba1\u7406\u5de5\u5177\uff0c<strong>\u7eff\u8272\u514d\u5b89\u88c5<\/strong>\uff0c\u89e3\u538b\u5373\u7528\u3002<\/p>\n<ul style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: disc;\">\n<li>\n<section>\u5b98\u7f51\uff1a<a style=\"text-decoration: none; overflow-wrap: break-word; font-weight: bold; color: #ef7060; border-bottom: 1px solid #ef7060;\" href=\"https:\/\/sqlitestudio.pl\/\">https:\/\/sqlitestudio.pl\/<\/a><\/section>\n<\/li>\n<li>\n<section>GitHub \u53d1\u5e03\u9875\uff08\u63a8\u8350\uff0c\u7248\u672c\u6700\u5168\uff09\uff1a<a style=\"text-decoration: none; overflow-wrap: break-word; font-weight: bold; color: #ef7060; border-bottom: 1px solid #ef7060;\" href=\"https:\/\/github.com\/pawelsalawa\/sqlitestudio\/releases\">https:\/\/github.com\/pawelsalawa\/sqlitestudio\/releases<\/a><\/section>\n<\/li>\n<li>\n<section>Windows \u9009 <strong>Portable\uff08\u4fbf\u643a\u7248\uff09<\/strong>\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">sqlitestudio-&lt;\u7248\u672c\u53f7&gt;-windows-x64.zip<\/code><\/section>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 3\uff5c\u4e09\u6b65\u88c5\u597d SQLiteStudio\uff08Windows\uff09<\/strong><\/p>\n<ol style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: decimal;\">\n<li>\n<section>\u4e0b\u8f7d <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">sqlitestudio-3.4.x-windows-x64.zip<\/code>\uff1b<\/section>\n<\/li>\n<li>\n<section>\u89e3\u538b\u5230\u4efb\u610f\u76ee\u5f55\uff0c\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">D:\\Tools\\SQLiteStudio<\/code>\uff1b<\/section>\n<\/li>\n<li>\n<section>\u53cc\u51fb <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">SQLiteStudio.exe<\/code> \u8fd0\u884c\uff0c\u65e0\u9700\u5b89\u88c5\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u26a0\ufe0f \u5b89\u5168\u63d0\u793a\uff1a\u8bfe\u4ef6\u539f\u59cb\u94fe\u63a5\u6765\u81ea\u7b2c\u4e09\u65b9\u7f51\u76d8\u6253\u5305\uff08gitcode \u4ed3\u5e93\u7684 zip\uff09\uff0c<strong>\u4f18\u5148\u4ece\u5b98\u7f51\u6216 GitHub \u4e0b\u8f7d<\/strong>\uff1b\u5982\u679c\u7528\u7b2c\u4e09\u65b9\u5305\uff0c\u88c5\u5b8c\u5148\u6740\u6bd2\u626b\u63cf\u518d\u6253\u5f00\u3002\u5de5\u5177\u672c\u8eab\u5f00\u6e90\u514d\u8d39\uff0c\u6ca1\u5fc5\u8981\u5192\u9669\u3002<\/p>\n<\/blockquote>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u4e2d\u6587\u5316\uff1a\u83dc\u5355 <strong>Tools \u2192 Preferences\uff08\u914d\u7f6e\uff09\u2192 Environment \u2192 Language<\/strong> \u9009\u62e9&#8221;\u7b80\u4f53\u4e2d\u6587&#8221;\uff0c\u91cd\u542f\u751f\u6548\u3002\u9996\u6b21\u82e5\u62a5\u7f3a\u5c11 DLL\uff0c\u8bf4\u660e\u4e0b\u5230\u4e86\u6700\u5c0f\u5316\u7248\u672c\uff0c\u6362\u5b8c\u6574\u4fbf\u643a\u7248\u5373\u53ef\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">3.2 \u7b2c\u4e00\u6b65\uff1a\u786e\u8ba4\u6570\u636e\u5e93\u6587\u4ef6\u5df2\u7ecf\u751f\u6210<\/h3>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u77e5\u8bc6\u70b9 3\uff5c<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #ef7060;\">SQLiteOpenHelper<\/code> \u662f\u61d2\u52a0\u8f7d\uff0c\u4e0d\u5efa\u5e93\u5c31\u5bfc\u4e0d\u51fa\u6587\u4ef6<\/h3>\n<p style=\"margin: 1em 0px;\">\u8fd9\u662f\u672c\u8282<strong>\u6700\u5927\u7684\u5751<\/strong>\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">new ExpressOpenHelper(this)<\/code> \u53ea\u662f\u521b\u5efa\u4e86\u5e2e\u52a9\u7c7b\u5bf9\u8c61\uff0c<strong>\u6570\u636e\u5e93\u6587\u4ef6\u6b64\u65f6\u8fd8\u4e0d\u5b58\u5728<\/strong>\u3002\u53ea\u6709\u8c03\u7528<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-java\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\"><span class=\"hljs-type\" style=\"color: #6c71c4;\">SQLiteDatabase<\/span>\u00a0<span class=\"hljs-variable\" style=\"color: #dc322f;\">db<\/span>\u00a0<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">=<\/span>\u00a0helper.getWritableDatabase();\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u4e4b\u540e\uff0c\u7cfb\u7edf\u624d\u4f1a\u5728 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">databases\/<\/code> \u76ee\u5f55\u4e0b\u771f\u6b63\u521b\u5efa <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda.db<\/code> \u5e76\u56de\u8c03 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">onCreate()<\/code> \u5efa\u8868\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 4\uff5c\u786e\u8ba4\u6587\u4ef6\u5df2\u751f\u6210<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u65b9\u6cd5 A\uff1a\u8fd0\u884c\u793a\u4f8b\u5de5\u7a0b <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">Day07Express<\/code>\uff0c\u81ea\u68c0\u9875\u4f1a\u663e\u793a&#8221;\u6570\u636e\u5e93\uff1amiaoda.db \u7248\u672c\uff1a1&#8243;\u548c\u8868\u5217\u8868\uff1b<br \/>\n\u65b9\u6cd5 B\uff1aDevice Explorer \u91cc\u770b <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">databases\/<\/code> \u76ee\u5f55\u4e0b\u6709\u6ca1\u6709 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda.db<\/code>\uff1b<br \/>\n\u65b9\u6cd5 C\uff1a\u547d\u4ee4\u884c\u786e\u8ba4\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-bash\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb\u00a0shell\u00a0run-as\u00a0edu.cdp.android.day07\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">ls<\/span>\u00a0databases\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u8f93\u51fa <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda.db<\/code> \u5c31\u8bf4\u660e\u53ef\u4ee5\u5bfc\u51fa\u4e86\u3002<strong>\u5982\u679c\u76ee\u5f55\u662f\u7a7a\u7684\u2014\u2014\u5148\u53bb App \u91cc\u70b9\u4e00\u6b21&#8221;\u91cd\u65b0\u68c0\u6d4b&#8221;\u3002<\/strong><\/p>\n<hr \/>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">3.3 \u7b2c\u4e8c\u6b65\uff1aDevice Explorer \u5bfc\u51fa<\/h3>\n<p style=\"margin: 1em 0px;\">\u64cd\u4f5c\u8def\u5f84\uff1a<strong>\u83dc\u5355 View \u2192 Tool Windows \u2192 Device Explorer<\/strong>\uff08\u65e7\u7248\u672c\u53eb Device File Explorer\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u70b9 Android Studio \u5de6\u4fa7\u8fb9\u680f\u7684\u6587\u4ef6\u56fe\u6807\uff09\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571050669.webp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3980\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571050669.webp\" alt=\"\" width=\"1920\" height=\"1032\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571050669.webp 1920w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571050669-768x413.webp 768w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\">\u7136\u540e\u5728\u6587\u4ef6\u6811\u91cc\u9010\u5c42\u5c55\u5f00\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">data \u2192 data \u2192 edu.cdp.android.day07 \u2192 databases<\/code>\uff0c\u627e\u5230 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda.db<\/code>\uff0c<strong>\u53f3\u952e \u2192 Save As&#8230;\uff08Ctrl+Shift+S\uff09<\/strong> \u4fdd\u5b58\u5230\u7535\u8111\u672c\u5730\uff0c\u4f8b\u5982 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">D:\\db-backup\\<\/code>\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571185912.webp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3982\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788571185912.webp\" alt=\"\" width=\"630\" height=\"888\" \/><\/a><\/p>\n<hr \/>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">3.4 \u7b2c\u4e09\u6b65\uff1aSQLiteStudio \u6253\u5f00\u4e0e\u67e5\u770b<\/h3>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 7\uff5c\u6dfb\u52a0\u6570\u636e\u5e93\uff08\u56fe\u6587\uff09<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u83dc\u5355 <strong>\u6570\u636e\u5e93\uff08Database\uff09\u2192 \u6dfb\u52a0\u6570\u636e\u5e93\uff08Add a database\uff09<\/strong>\uff0c\u5f39\u51fa\u5982\u4e0b\u5bf9\u8bdd\u6846\uff1a<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570817055.webp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3983\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570817055.webp\" alt=\"\" width=\"1184\" height=\"1010\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570817055.webp 1184w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570817055-768x655.webp 768w\" sizes=\"(max-width: 1184px) 100vw, 1184px\" \/><\/a><\/p>\n<ol style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: decimal;\">\n<li>\n<section><strong>\u6570\u636e\u7c7b\u578b<\/strong>\uff1a\u9009 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">SQLite 3<\/code>\uff1b<\/section>\n<\/li>\n<li>\n<section><strong>\u6587\u4ef6<\/strong>\uff1a\u70b9\u6587\u4ef6\u5939\u56fe\u6807\uff0c\u9009\u4e2d\u521a\u624d\u5bfc\u51fa\u7684 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda.db<\/code>\uff1b<\/section>\n<\/li>\n<li>\n<section>\u70b9 <strong>\u6d4b\u8bd5\u8fde\u63a5<\/strong>\uff0c\u63d0\u793a\u6210\u529f\u540e\u70b9 <strong>OK<\/strong>\u3002<\/section>\n<\/li>\n<\/ol>\n<p style=\"margin: 1em 0px;\">\u6253\u5f00\u540e\u5de6\u4fa7\u51fa\u73b0\u6570\u636e\u5e93\u6811\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda \u2192 Tables(3)<\/code>\uff0c\u80fd\u770b\u5230 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">android_metadata<\/code>\uff08\u7cfb\u7edf\u8868\uff09\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">tb_order<\/code>\u3001<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">tb_user<\/code>\u3002\u53cc\u51fb <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">tb_user<\/code>\uff0c\u4e0a\u65b9\u6709\u56db\u4e2a\u9875\u7b7e\uff1a<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u9875\u7b7e<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5185\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u7ed3\u6784<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5217\u540d\u3001\u7c7b\u578b\u3001\u7ea6\u675f\uff08\u5bf9\u7167\u7b2c 7 \u65e5\u8bb2\u4e49\u7684\u8868\u7ed3\u6784\u68c0\u67e5\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6570\u636e<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8868\u683c\u5316\u6d4f\u89c8\uff0c\u53ef\u76f4\u63a5\u53cc\u51fb\u5355\u5143\u683c\u6539\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u7ea6\u675f \/ Indexes \/ \u89e6\u53d1\u5668<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u4e3b\u952e\u3001\u552f\u4e00\u7ea6\u675f\u7b49<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">DDL<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5efa\u8868 SQL \u539f\u6587\uff08\u548c\u4f60 <code>DbConstants<\/code> \u91cc\u5199\u7684\u5bf9\u7167\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570927697.webp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3984\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570927697.webp\" alt=\"\" width=\"1038\" height=\"686\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570927697.webp 1038w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570927697-768x508.webp 768w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-jie-zhusqlite-studio-1788570927697-90x60.webp 90w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 8\uff5c\u7528 SQL \u9a8c\u8bc1\u6570\u636e\uff08\u628a\u7b2c 7 \u65e5\u7684 SQL \u7528\u8d77\u6765\uff09<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u70b9\u51fb\u5de5\u5177\u680f\u7684&#8221;SQL \u7f16\u8f91\u5668&#8221;\uff08\u6253\u5f00 SQL \u7f16\u8f91\u533a\uff09\uff0c\u6267\u884c\uff1a<\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-sql\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\"><span class=\"hljs-comment\" style=\"color: #657b83;\">--\u00a0\u2460\u00a0\u5e93\u91cc\u6709\u54ea\u4e9b\u8868\uff08\u5bf9\u5e94\u00a0MainActivity\u00a0\u7684\u81ea\u68c0\u903b\u8f91\uff09<\/span>\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">SELECT<\/span>\u00a0name\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">FROM<\/span>\u00a0sqlite_master\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">WHERE<\/span>\u00a0type<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">=<\/span><span class=\"hljs-string\" style=\"color: #859900;\">'table'<\/span>\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">ORDER<\/span>\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">BY<\/span>\u00a0name;\n\n<span class=\"hljs-comment\" style=\"color: #657b83;\">--\u00a0\u2461\u00a0\u7528\u6237\u8868\u884c\u6570\uff08\u5e94\u4e0e\u00a0App\u00a0\u81ea\u68c0\u9875\u663e\u793a\u4e00\u81f4\uff09<\/span>\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">SELECT<\/span>\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">COUNT<\/span>(<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">*<\/span>)\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">FROM<\/span>\u00a0tb_user;\n\n<span class=\"hljs-comment\" style=\"color: #657b83;\">--\u00a0\u2462\u00a0\u67e5\u6f14\u793a\u8d26\u53f7<\/span>\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">SELECT<\/span>\u00a0_id,\u00a0username,\u00a0phone,\u00a0real_name,\u00a0address\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">FROM<\/span>\u00a0tb_user\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">WHERE<\/span>\u00a0username\u00a0<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">=<\/span>\u00a0<span class=\"hljs-string\" style=\"color: #859900;\">'demo'<\/span>\u00a0<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">AND<\/span>\u00a0password\u00a0<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">=<\/span>\u00a0<span class=\"hljs-string\" style=\"color: #859900;\">'123456'<\/span>;\n\n<span class=\"hljs-comment\" style=\"color: #657b83;\">--\u00a0\u2463\u00a0\u8054\u8868\u9884\u6f14\uff1a\u8ba2\u5355\u5e26\u4e0a\u53d1\u5355\u4eba\u7528\u6237\u540d\uff08\u7b2c\u00a011\u300112\u00a0\u65e5\u4f1a\u7528\u5230\uff09<\/span>\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">SELECT<\/span>\u00a0o._id,\u00a0o.order_type,\u00a0o.status,\u00a0u.username\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">FROM<\/span>\u00a0tb_order\u00a0o,\u00a0tb_user\u00a0u\n<span class=\"hljs-keyword\" style=\"color: #6c71c4;\">WHERE<\/span>\u00a0o.user_id\u00a0<span class=\"hljs-operator\" style=\"color: #93a1a1; opacity: 0.7;\">=<\/span>\u00a0u._id;\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u6267\u884c\u65b9\u5f0f\uff1a\u9009\u4e2d\u8bed\u53e5\u540e\u70b9\u51fb\u5de5\u5177\u680f\u7684 \u25b6 \u6267\u884c\u6309\u94ae\uff08\u6216\u6309 F9\uff09\uff0c\u7ed3\u679c\u5728\u4e0b\u65b9\u7f51\u683c\u663e\u793a\u3002<\/p>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u4fee\u6539\u6570\u636e\u76f4\u63a5\u5728&#8221;\u6570\u636e&#8221;\u9875\u7b7e\u53cc\u51fb\u5355\u5143\u683c\u5373\u53ef\uff1b<strong>\u6ce8\u610f\u4fdd\u6301 App \u5904\u4e8e\u5173\u95ed\u72b6\u6001\u518d\u6539<\/strong>\uff0c\u5426\u5219\u53ef\u80fd\u51fa\u73b0 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">database is locked<\/code>\u3002<\/p>\n<\/blockquote>\n<hr \/>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u56db\u3001\u65b9\u6848\u4e8c\uff1aDatabase Inspector\uff08Android Studio \u81ea\u5e26\uff0c\u96f6\u5bfc\u51fa\uff09<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u77e5\u8bc6\u70b9 5\uff5c\u5b83\u662f&#8221;\u8fde\u7740\u8fd0\u884c\u4e2d\u7684 App&#8221;\u5b9e\u65f6\u67e5\u770b<\/h3>\n<p style=\"margin: 1em 0px;\">Android Studio 4.1 \u8d77\u5185\u7f6e <strong>Database Inspector<\/strong>\uff08\u65b0\u7248\u672c\u5728 <strong>App Inspection<\/strong> \u7a97\u53e3\u91cc\uff09\uff0c\u76f4\u63a5\u8fde\u4e0a\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u67e5\u6570\u636e\u5e93\uff0c<strong>\u4e0d\u7528\u5bfc\u51fa\u4efb\u4f55\u6587\u4ef6<\/strong>\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><a href=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-wan-quan-zhi-nan-1788572103067.webp\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3985\" src=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-wan-quan-zhi-nan-1788572103067.webp\" alt=\"\" width=\"1482\" height=\"774\" srcset=\"https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-wan-quan-zhi-nan-1788572103067.webp 1482w, https:\/\/ai.zhousir.top\/wp-content\/uploads\/2026\/09\/android-studio-cha-kansqlite-shu-ju-ku-wan-quan-zhi-nan-1788572103067-768x401.webp 768w\" sizes=\"(max-width: 1482px) 100vw, 1482px\" \/><\/a><\/p>\n<p style=\"margin: 1em 0px;\"><strong>\u524d\u63d0\u6761\u4ef6\uff08\u7f3a\u4e00\u4e0d\u53ef\uff09\uff1a<\/strong><\/p>\n<ol style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: decimal;\">\n<li>\n<section>\u5e94\u7528\u8fd0\u884c\u5728 <strong>API 26+\uff08Android 8.0\uff09<\/strong> \u7684\u6a21\u62df\u5668\u6216\u771f\u673a\u4e0a\uff1b<\/section>\n<\/li>\n<li>\n<section>\u662f <strong>debug \u5305<\/strong>\uff08Android Studio \u76f4\u63a5 Run \u51fa\u6765\u7684\u5c31\u662f\uff09\uff1b<\/section>\n<\/li>\n<li>\n<section>\u5e94\u7528\u8fdb\u7a0b<strong>\u6b63\u5728\u8fd0\u884c<\/strong>\u3002<\/section>\n<\/li>\n<\/ol>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u6ce8\u610f\uff1a\u672c\u8bfe\u5de5\u7a0b minSdk 14 \u4e0d\u51b2\u7a81\u2014\u2014 Inspector \u770b\u7684\u662f<strong>\u8bbe\u5907\u7cfb\u7edf\u7248\u672c<\/strong>\uff0c\u4e0d\u662f minSdk\u3002\u628a\u5de5\u7a0b\u8dd1\u5230 API 26+ \u7684\u6a21\u62df\u5668\u4e0a\u5373\u53ef\u3002<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 9\uff5c\u56db\u6b65\u6253\u5f00\u5e76\u67e5\u8be2<\/strong><\/p>\n<ol style=\"padding-left: 1rem; margin-left: 1rem; font-size: 0.9rem; list-style-type: decimal;\">\n<li>\n<section>\u8fd0\u884c App\uff1b<\/section>\n<\/li>\n<li>\n<section>\u83dc\u5355 <strong>View \u2192 Tool Windows \u2192 App Inspection<\/strong>\uff0c\u9009 <strong>Database Inspector<\/strong> \u6807\u7b7e\u9875\uff1b<\/section>\n<\/li>\n<li>\n<section>\u9876\u90e8\u4e0b\u62c9\u6846\u9009\u4e2d <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">edu.cdp.android.day07<\/code> \u8fdb\u7a0b\uff1b<\/section>\n<\/li>\n<li>\n<section>\u5de6\u4fa7 Databases \u9762\u677f\u5c55\u5f00 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">miaoda<\/code>\uff0c\u53cc\u51fb <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">tb_user<\/code> \u67e5\u770b\u6570\u636e\uff1b\u70b9 <strong>Open New Query tab<\/strong> \u53ef\u6267\u884c\u81ea\u5b9a\u4e49 SQL\u3002<\/section>\n<\/li>\n<\/ol>\n<p style=\"margin: 1em 0px;\">\u5e38\u7528\u6280\u5de7\uff1a<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u5f00\u5173<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u4f5c\u7528<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u4ec0\u4e48\u65f6\u5019\u7528<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><strong>Live updates<\/strong><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">App \u4e00\u5199\u5e93\uff0c\u8868\u683c\u81ea\u52a8\u5237\u65b0\uff08\u5f00\u542f\u540e\u8868\u683c\u53d8\u53ea\u8bfb\uff09<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8c03\u6ce8\u518c\/\u767b\u5f55\u6d41\u7a0b\uff0c\u8fb9\u70b9\u8fb9\u770b<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><strong>Keep database connections open<\/strong><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u963b\u6b62 Inspector \u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">App \u9891\u7e41\u5f00\u5173\u8fde\u63a5\u5bfc\u81f4\u5de6\u4fa7\u5217\u8868&#8221;\u6570\u636e\u5e93\u5ffd\u9690\u5ffd\u73b0&#8221;\u65f6<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><strong>\u79bb\u7ebf\u6a21\u5f0f<\/strong>\uff084.2+\uff09<\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8fdb\u7a0b\u65ad\u5f00\u540e\u4ecd\u53ef\u6d4f\u89c8\u521a\u4e0b\u8f7d\u7684\u5feb\u7167\uff0c\u6807\u9898\u5e26 <code>[DETACHED]<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">App \u5d29\u6e83\u540e\u7ee7\u7eed\u67e5\u6848\u53d1\u73b0\u573a\uff08\u53ea\u8bfb\uff0c\u4e0d\u80fd\u6539\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 10\uff5c\u5728 Inspector \u91cc\u76f4\u63a5\u6539\u6570\u636e<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u53cc\u51fb <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">tb_user<\/code> \u6570\u636e\u7f51\u683c\u91cc\u7684\u67d0\u4e2a\u5355\u5143\u683c \u2192 \u8f93\u5165\u65b0\u503c \u2192 \u56de\u8f66\uff0c\u6539\u52a8\u7acb\u5373\u5199\u8fdb\u8bbe\u5907\u4e0a\u7684\u6570\u636e\u5e93\u3002\u5207\u56de App \u70b9&#8221;\u91cd\u65b0\u68c0\u6d4b&#8221;\uff0c\u884c\u6570\u4e0e\u5185\u5bb9\u540c\u6b65\u53d8\u5316\u2014\u2014<strong>\u8fd9\u662f\u5411\u5b66\u751f\u8bc1\u660e&#8221;\u6570\u636e\u5e93\u771f\u7684\u5728\u672c\u673a&#8221;\u6700\u76f4\u89c2\u7684\u6f14\u793a<\/strong>\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 11\uff5c\u4ece Inspector \u76f4\u63a5\u5bfc\u51fa\u6587\u4ef6<\/strong><\/p>\n<p style=\"margin: 1em 0px;\">\u5728 Databases \u9762\u677f\u53f3\u952e\u6570\u636e\u5e93\u6216\u8868 \u2192 <strong>Export to file<\/strong>\uff0c\u652f\u6301\u4e09\u79cd\u683c\u5f0f\uff1a<\/p>\n<table style=\"border-collapse: collapse; margin: 1.4em auto; max-width: 100%; table-layout: fixed; text-align: left; overflow: auto; display: table; overflow-wrap: break-word; word-break: break-all;\">\n<thead>\n<tr>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u683c\u5f0f<\/th>\n<th style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top; font-weight: bold; background-color: #fff9f9; color: #ef7060;\">\u7528\u9014<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>DB<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u6807\u51c6\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u53ef\u518d\u7528 SQLiteStudio \u6253\u5f00<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>SQL<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u5efa\u8868 + \u63d2\u5165\u8bed\u53e5\u7684\u811a\u672c\uff0c\u53ef\u8de8\u5e93\u91cd\u5efa<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\"><code>CSV<\/code><\/td>\n<td style=\"font-size: 0.75em; padding: 9px 12px; line-height: 22px; border: 1px solid #ef7060; vertical-align: top;\">\u8868\u683c\u6570\u636e\uff0c\u53ef\u62d6\u8fdb Excel \u505a\u7b54\u8fa9\u9644\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em; border-bottom: 2px solid #ef7060; display: flex;\"><span style=\"display: inline-block; font-weight: bold; background: #ef7060; color: #ffffff; padding: 3px 10px 1px; border-top-right-radius: 3px; border-top-left-radius: 3px; margin-right: 3px;\">\u4e94\u3001\u65b9\u6848\u4e09\uff1aadb \u547d\u4ee4\u884c\u5bfc\u51fa\uff08\u771f\u673a\u65e0 root\u3001\u53ef\u811a\u672c\u5316\uff09<\/span><\/h2>\n<h3 style=\"margin: 1.2em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\">\u77e5\u8bc6\u70b9 6\uff5c<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; color: #ef7060;\">run-as<\/code> \u662f debug \u5305\u7684\u540e\u95e8<\/h3>\n<p style=\"margin: 1em 0px;\"><code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">run-as &lt;\u5305\u540d&gt;<\/code> \u80fd\u8ba9 shell \u4ee5\u8be5\u5e94\u7528\u7684 Linux \u7528\u6237\u8eab\u4efd\u6267\u884c\u547d\u4ee4\uff0c<strong>\u53ea\u5bf9 debuggable \u7684\u5305\u6709\u6548<\/strong>\uff08Android Studio Run \u51fa\u6765\u7684 debug \u5305\u81ea\u52a8\u6ee1\u8db3\uff09\u3002\u7528\u5b83\u7ed5\u8fc7\u77e5\u8bc6\u70b9 2 \u91cc\u8bf4\u7684\u76ee\u5f55\u6743\u9650\u3002<\/p>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 12\uff5c\u6700\u77ed\u53ef\u7528\u7684\u5bfc\u51fa\u547d\u4ee4\uff08\u91cd\u70b9\u770b <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">exec-out<\/code>\uff09<\/strong><\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-bash\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">adb\u00a0exec-out\u00a0run-as\u00a0edu.cdp.android.day07\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">cat<\/span>\u00a0databases\/miaoda.db\u00a0&gt;\u00a0miaoda.db\nadb\u00a0exec-out\u00a0run-as\u00a0edu.cdp.android.day07\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">cat<\/span>\u00a0databases\/miaoda.db-wal\u00a0&gt;\u00a0miaoda.db-wal\n<\/code><\/pre>\n<blockquote style=\"margin: 20px 0px; display: block; font-size: 0.9em; overflow: auto; border-left: 3px solid #ef7060; color: #6a737d; padding: 10px 10px 10px 20px; background: #fff9f9;\">\n<p style=\"margin: 1em 0px;\">\u26a0\ufe0f <strong>Windows \u4e13\u5c5e\u5927\u5751<\/strong>\uff1a\u5fc5\u987b\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">adb exec-out<\/code>\uff0c\u4e0d\u8981\u7528 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">adb shell<\/code>\uff01<br \/>\n<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">adb shell ... &gt; \u6587\u4ef6<\/code> \u4f1a\u628a\u8f93\u51fa\u91cc\u7684\u6362\u884c\u7b26 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\\n<\/code> \u81ea\u52a8\u66ff\u6362\u6210 Windows \u7684 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\\r\\n<\/code>\uff0c<strong>\u4e8c\u8fdb\u5236\u6587\u4ef6\u88ab\u52a0\u8fdb <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\\r<\/code> \u540e\u76f4\u63a5\u635f\u574f<\/strong>\uff0cSQLiteStudio \u6253\u5f00\u62a5 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">file is not a database<\/code>\u3002<code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">exec-out<\/code> \u8f93\u51fa\u539f\u59cb\u5b57\u8282\u6d41\uff0c\u4e0d\u505a\u4efb\u4f55\u8f6c\u6362\u3002<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px;\"><strong>\u793a\u4f8b 13\uff5c\u66f4\u7a33\u7684\u505a\u6cd5\uff1a\u7ecf <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">\/data\/local\/tmp<\/code> \u4e2d\u8f6c\u518d <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">pull<\/code><\/strong><\/p>\n<section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><\/section>\n<pre style=\"overflow: auto hidden; word-break: normal; white-space: pre; tab-size: 2; border-radius: 5px; line-height: 2; margin: 1em 0.5em; padding: 0.5em; box-shadow: rgba(0, 0, 0, 0.55) 0px 1px 5px; font-size: 10px; background: #002b36; max-width: 100%; overflow-wrap: normal;\"><code class=\"hljs language-bash\" style=\"word-break: normal; white-space: nowrap; tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; display: block; margin: 0.5em; padding: 3px 5px; overflow-x: auto; color: #93a1a1; background: #002b36; overflow-wrap: normal;\">::\u00a01.\u00a0\u62f7\u5230\u516c\u5171\u4e34\u65f6\u76ee\u5f55\uff08run-as\u00a0\u5185\u90e8\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">cp<\/span>\uff0c\u4e0d\u7ecf\u8fc7\u6587\u672c\u8f6c\u6362\uff09\nadb\u00a0shell\u00a0run-as\u00a0edu.cdp.android.day07\u00a0<span class=\"hljs-built_in\" style=\"color: #2aa198;\">cp<\/span>\u00a0databases\/miaoda.db\u00a0\/data\/local\/tmp\/miaoda.db\n\n::\u00a02.\u00a0pull\u00a0\u62c9\u56de\u7535\u8111\uff08pull\u00a0\u662f\u7eaf\u4e8c\u8fdb\u5236\u4f20\u8f93\uff0c\u65e0\u6362\u884c\u7b26\u95ee\u9898\uff09\nadb\u00a0pull\u00a0\/data\/local\/tmp\/miaoda.db\u00a0D:\\db-backup\\miaoda.db\n<\/code><\/pre>\n<p style=\"margin: 1em 0px;\">\u628a\u8fd9\u4e24\u884c\u5b58\u6210 <code style=\"font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Roboto Mono', 'Courier New', 'Microsoft YaHei', monospace; font-size: 0.9em; overflow-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0px 2px; color: #ef7060; background-color: rgba(27, 31, 35, 0.05); word-break: break-all;\">export-db.bat<\/code> \u653e\u8fdb\u5de5\u7a0b\u76ee\u5f55\uff0c\u4ee5\u540e\u53cc\u51fb\u5c31\u5bfc\u51fa\uff0c\u7b54\u8fa9\u6f14\u793a\u524d\u7279\u522b\u597d\u7528\u3002<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5148\u641e\u6e05\u695a\uff1a\u6570\u636e\u5e93\u5230\u5e95\u85cf\u5728\u54ea \u77e5\u8bc6\u70b9 1\uff5cSQLite \u6570\u636e\u5e93\u5c31\u662f\u4e00\u4e2a\u666e\u901a\u6587\u4ef6 \u300a\u6570\u636e\u5e93\u5e94\u7528\u6280\u672f\u300b\u91cc\u7684 My [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3960,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,7],"tags":[198],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3959"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3959"}],"version-history":[{"count":3,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3959\/revisions"}],"predecessor-version":[{"id":3986,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3959\/revisions\/3986"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/media\/3960"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}