查看android模拟器里的sqlite数据库

<span style="background-color: rgb(255, 255, 255);"><span style="color:#3333ff;">C:\Users\Administrator>adb  shell</span></span>
root@android:/ #

root@android:/ #

<span style="color:#3333ff;">root@android:/ # ls -l</span>
ls -l
drwxr-xr-x root     root              2015-10-26 11:30 acct
drwxrwx--- system   cache             2015-10-26 11:30 cache
dr-x------ root     root              2015-10-26 11:30 config
lrwxrwxrwx root     root              2015-10-26 11:30 d -> /sys/kernel/debug
drwxrwx--x system   system            2015-10-26 11:31 data
-rw-r--r-- root     root          116 1970-01-01 00:00 default.prop

<span style="color:#3333ff;">root@android:/ # cd   data/data</span>
cd   data/data
root@android:/data/data # ls -l
ls -l
drwxr-x--x u0_a32   u0_a32            2015-10-26 11:31 com.android.backupconfirm
......
ephony

drwxr-x--x u0_a37   u0_a37            2015-10-26 11:33 <span style="color:#3333ff;background-color: rgb(255, 255, 255);">com.xiaoke.accountsoft.ac</span>
tivity
drwxr-x--x u0_a15   u0_a15            2015-10-26 11:31 jp.co.omronsoft.openwnn
<span style="color:#3333ff;">root@android:/data/data # cd  com.xiaoke.accountsoft.activity
cd  com.xiaoke.accountsoft.activity
root@android:/data/data/com.xiaoke.accountsoft.activity # ls -l</span>
ls -l
drwxrwx--x u0_a37   u0_a37            2015-10-26 11:32 cache
drwxrwx--x u0_a37   u0_a37            2015-10-26 11:33<span style="color:#3333ff;"> databases</span>
drwxr-xr-x system   system            2015-10-26 11:32 lib
<span style="color:#3333ff;">root@android:/data/data/com.xiaoke.accountsoft.activity # cd   databases</span>
cd   databases
root@android:/data/data/com.xiaoke.accountsoft.activity/databases # ls -l
ls -l
-rw-rw---- u0_a37   u0_a37      28672 2015-10-26 11:50 <span style="color:#3333ff;">account.db</span>
-rw------- u0_a37   u0_a37       8720 2015-10-26 11:50 account.db-journal
root@android:/data/data/com.xiaoke.accountsoft.activity/databases # sqlite3  acc
ount.db
e3  account.db                                                                <
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
<span style="background-color: rgb(255, 255, 255);"><span style="color:#3333ff;">sqlite> .help</span></span>
.help
.backup ?DB? FILE      Backup DB (default "main") to FILE
.bail ON|OFF           Stop after hitting an error.  Default OFF
.databases             List names and files of attached databases
...........
<pre name="code" class="cpp"><span style="color:#3333ff;">sqlite> .tables</span>
.tables
android_metadata  tb_inaccount      tb_pwd
tb_flag           tb_outaccount
<span style="color:#3333ff;">sqlite> select   *  from    tb_account;</span>

1|2222|2015-10-26|鏃╅|222|


 
 

你可能感兴趣的:(android,sqlite)