LoginSignup
1

More than 5 years have passed since last update.

SqliteをCLIから操作

Posted at

すぐ忘れるので。。。
adbパスが通っていることが前提です。

shellを起動し、databaseまで移動

 $adb shell
 $cd data/data/<pacage name>/databases

databaseを選択

$sqlite3 xxxxxxx.db;

table一覧表示

$sqlite3.tables;

テーブルスキーマ確認

そのテーブルのCREATE文を確認する

$select * from sqlite_master where type='table' and name='テーブル名'; 

sqliteコマンド終了

$.exit

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1