{"id":310,"date":"2012-01-13T00:03:28","date_gmt":"2012-01-12T15:03:28","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2012\/01\/13\/android_sqlite_sql\/"},"modified":"2012-01-13T00:03:28","modified_gmt":"2012-01-12T15:03:28","slug":"android_sqlite_sql","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2012\/01\/13\/android_sqlite_sql\/","title":{"rendered":"Android sqlite \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089SQL\u3092\u767a\u884c\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b"},"content":{"rendered":"<p>&#160;<\/p>\n<h2>1.Android \u30a2\u30d7\u30ea\u304c\u4f5c\u6210\u3057\u305f SQLite \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/h2>\n<p>\u5f15\u304d\u7d9a\u304d\u3001<a href=\"https:\/\/market.android.com\/details?id=info.typea.eitangoroid.free\">\u82f1\u5358\u8a9e\u30ed\u30a4\u30c9<\/a> \u306b\u6539\u4fee\u3092\u52a0\u3048\u305f\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u4eca\u307e\u3067\u306f\u3001\u82f1\u5358\u8a9e\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u3001\u30c6\u30fc\u30d6\u30eb\u30921\u3064\u3060\u3051\u4f7f\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001\u30c6\u30fc\u30d6\u30eb\u30922\u30013\u8ffd\u52a0\u3057\u305f\u3044\u3002<\/p>\n<p>\u3068\u306a\u308b\u3068\u3001\u5f53\u7136\u3001\u76f4\u63a5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u304f\u306a\u308b\u306e\u3067\u3001\u65b9\u6cd5\u3092\u78ba\u8a8d\u3002<\/p>\n<p>&#160;<a href=\"http:\/\/developer.android.com\/guide\/developing\/tools\/adb.html#sqlite\">\u30ea\u30e2\u30fc\u30c8\u30b7\u30a7\u30eb\u304b\u3089 sqlite3 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/a> \u3092\u898b\u308b\u3068\u3001<\/p>\n<ul>\n<li>adb \u30ea\u30e2\u30fc\u30c8\u30b7\u30a7\u30eb\u304b\u3089 sqlite3 \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u3001Android \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u6210\u3057\u305f\u3001SQLite \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u7ba1\u7406\u3067\u304d\u308b <\/li>\n<li>sqlite3 \u306f\u3001\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3001\u4f8b\u3048\u3070\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u3092\u51fa\u529b\u3059\u308b .dump \u3001SQL \u306e CREATE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u8868\u793a\u3059\u308b\u3001.schema \u7b49\u3092\u542b\u3093\u3067\u3044\u308b <\/li>\n<\/ul>\n<p>\u3060\u305d\u3046\u3060\u3002<\/p>\n<h2>2.\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u7acb\u3061\u4e0a\u3052\u3001\u5bfe\u8c61\u306e\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(Eclipse\u304b\u3089\u8d77\u52d5)\u3059\u308b<\/h2>\n<p>\u6240\u6709\u306e\u5b9f\u6a5f(X06HT Desire) \u306f\u3001\u3073\u3073\u3063\u3066 root \u3092\u3068\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u6a29\u9650\u304c\u306a\u3044\u305f\u3081\u3001data\/data \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_desire.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"sqlite_desire\" border=\"0\" alt=\"sqlite_desire\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_desire_thumb.jpg\" width=\"436\" height=\"180\" \/><\/a> <\/p>\n<p><a href=\"http:\/\/developer.android.com\/guide\/developing\/tools\/adb.html#sqlite\">\u3053\u306e\u8a18\u8ff0\u3069\u304a\u308a<\/a> \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u8d77\u52d5\u3057\u3066\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u306b\u30ea\u30e2\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<\/p>\n<p><strong>\/data\/data\/[\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3apk\u30d1\u30c3\u30b1\u30fc\u30b8\u540d]\/databases <\/strong><\/p>\n<p>\u4ee5\u4e0b\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001<\/p>\n<p><strong>sqlite3 [\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d] <\/strong><\/p>\n<p>\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3002<\/p>\n<pre class=\"prettyprint linenums\">C:\\Users\\piroto&gt;adb shell\r\n# cd \/data\/data\/info.typea.eitangoroid.pro\/databases\r\ncd \/data\/data\/info.typea.eitangoroid.pro\/databases\r\n# ls\r\nls\r\nwebviewCache.db\r\nFlippadDB\r\nwebview.db\r\n# sqlite3 FlippadDB\r\nsqlite3 FlippadDB\r\nSQLite version 3.6.22\r\nEnter &quot;.help&quot; for instructions\r\nEnter SQL statements terminated with a &quot;;&quot;\r\nsqlite&gt;<\/pre>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"200\">\u30b3\u30de\u30f3\u30c9<\/td>\n<td valign=\"top\" width=\"200\">\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">.help<\/td>\n<td valign=\"top\" width=\"200\">\u30d8\u30eb\u30d7\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">.indices [TABLE]<\/td>\n<td valign=\"top\" width=\"200\">\u3059\u3079\u3066\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8868\u793a\u3002\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3082\u53ef<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">.schema [TABLE]<\/td>\n<td valign=\"top\" width=\"200\">CREATE \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u8868\u793a\u3002\u30c6\u30fc\u30d6\u30eb\u6307\u5b9a\u3082\u53ef<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">.show<\/td>\n<td valign=\"top\" width=\"200\">\u73fe\u5728\u306e\u8a2d\u5b9a\u3092\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"200\">.table [TABLE]<\/td>\n<td valign=\"top\" width=\"200\">\u30c6\u30fc\u30d6\u30eb\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3002\u30c6\u30fc\u30d6\u30eb\u6307\u5b9a(\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1)\u53ef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#160;<\/p>\n<p>\u3046\u30fc\u3093\u3002SELECT \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6587\u5b57\u5316\u3051\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_sjis.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"sqlite_sjis\" border=\"0\" alt=\"sqlite_sjis\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_sjis_thumb.jpg\" width=\"497\" height=\"324\" \/><\/a> <\/p>\n<h2>3,\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF-8\u306b\u5909\u66f4\u3059\u308b\u3002<\/h2>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<a href=\"http:\/\/d.hatena.ne.jp\/perlcodesample\/20080706\/1215291523\">\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092UTF-8\u306b\u5909\u66f4<\/a>\u3059\u308b\u3002<\/p>\n<blockquote>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=%CA%B8%BB%FA%A5%B3%A1%BC%A5%C9\">\u6587\u5b57\u30b3\u30fc\u30c9<\/a>\u3092\u5909\u66f4\u3057\u3066\u3082\u3001\u4f7f\u7528\u3059\u308b\u30d5\u30a9\u30f3\u30c8\u304c\u65e5\u672c\u8a9e\u5bfe\u8c61\u5916\u306e\u30d5\u30a9\u30f3\u30c8\u3060\u3068\u3001\u7d50\u5c40<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=%CA%B8%BB%FA%B2%BD%A4%B1\">\u6587\u5b57\u5316\u3051<\/a>\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u5b9f\u884c<\/p>\n<\/blockquote>\n<p><strong>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30d5\u30a9\u30f3\u30c8\u3092 MS\u30b4\u30b7\u30c3\u30af\u306b\u5909\u66f4<\/strong><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_font.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"sqlite_font\" border=\"0\" alt=\"sqlite_font\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_font_thumb.jpg\" width=\"348\" height=\"261\" \/><\/a> <\/p>\n<p><strong>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u5909\u66f4<\/strong><\/p>\n<pre class=\"prettyprint linenums\">C:\\Users\\piroto&gt;chcp 65001\r\n\r\nC:\\Users\\piroto&gt;chcp\r\nActive code page: 65001<\/pre>\n<\/p>\n<p><strong>\u518d\u5ea6\u5b9f\u884c<\/strong><\/p>\n<p>\u304d\u3061\u3093\u3068\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_emu04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"sqlite_emu04\" border=\"0\" alt=\"sqlite_emu04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_emu04_thumb.jpg\" width=\"635\" height=\"359\" \/><\/a> <\/p>\n<h2>4. sqlite3 \u30b3\u30de\u30f3\u30c9\u304c\u5165\u3063\u3066\u3044\u306a\u3044\uff01<\/h2>\n<p>root \u3068\u3063\u3066\u3044\u306a\u3044\u3001X06HT \u3067\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304b\u3063\u305f\u304c\u3001root \u5316\u3057\u305f\u3001LiteTouch NOTE \u306a\u3089\u3044\u3051\u308b\u304b\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_litetouch.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"sqlite_litetouch\" border=\"0\" alt=\"sqlite_litetouch\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_litetouch_thumb.jpg\" width=\"407\" height=\"246\" \/><\/a> <\/p>\n<p>sqlite3 \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u304d\u305f\u3002\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u308b\u5834\u6240\u3092\u78ba\u8a8d\u3057\u305f\u304c\u3001\u78ba\u304b\u306b\u306a\u3055\u305d\u3046\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001sqlite3 \u30b3\u30de\u30f3\u30c9\u306f Android \u306a\u3089\u3059\u3079\u304b\u3089\u304f\u5165\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3055\u305d\u3046\u3060\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_not_include.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"sqlite_not_include\" border=\"0\" alt=\"sqlite_not_include\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/AndroidsqliteSQL_158C\/sqlite_not_include_thumb.jpg\" width=\"364\" height=\"202\" \/><\/a> <\/p>\n<\/p>\n<p>\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u304b\u3089\u3001sqlite3 \u30b3\u30de\u30f3\u30c9\u3092\u6301\u3063\u3066\u304d\u3066\u3046\u3054\u304b\u3057\u3066\u3044\u308b\u5148\u9054\u304c\u3044\u308b\u306e\u3067\u3001\u4eca\u5ea6\u8a66\u3057\u3066\u307f\u3088\u3046\u3002<\/p>\n<p><a href=\"http:\/\/d.hatena.ne.jp\/kurukuru-papa\/20111030\/1319950036\">[Android] \u5b9f\u6a5f\u5185\u3067sqlite3\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#160; 1.Android \u30a2\u30d7\u30ea\u304c\u4f5c\u6210\u3057\u305f SQLite \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b \u5f15\u304d\u7d9a\u304d\u3001\u82f1\u5358\u8a9e\u30ed\u30a4\u30c9 \u306b\u6539\u4fee\u3092\u52a0\u3048\u305f\u3044\u3068\u601d\u3046\u3002 \u4eca\u307e\u3067\u306f\u3001\u82f1\u5358\u8a9e\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u3001\u30c6\u30fc\u30d6\u30eb\u30921\u3064\u3060\u3051\u4f7f\u3063\u3066\u3044 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[39],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-android"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}