通过CMD 查看android APP数据库表

1.  ADB SHELL

2. cd 到database目录:

3. sqlite3  databaseName.db;

4. .tables;

5. selecte * from tableName;


# ls

ls
lib
cache
databases
shared_prefs
# cd databases
cd databases
# ls
ls
webviewCache.db
webview.db
yb_database.db
# cd yb_database
cd yb_database
cd: can't cd to yb_database
# select
select
select: not found
# select * from db yb_database
select * from db yb_database
select: not found
# ls
ls
webviewCache.db
webview.db
yb_database.db
# sqlite3 yb_database.db
sqlite3 yb_database.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
.tables
android_metadata         cnd_coupon_alert         tracking_urls
barcode_history          favorites
cnd_business_watch_list  search_history
sqlite> select * from cnd_business_watch_list;
select * from cnd_business_watch_list;
1|1854751897|Rada Boutique|394 Main Street|Wakefield|MA|01880|781-224-1033|42503
5|-710705
2|1854751897|Rada Boutique|394 Main Street|Wakefield|MA|01880|781-224-1033|42503
5|-710705
sqlite>
C:\Users\allen_fang.D7YB>


你可能感兴趣的:(通过CMD 查看android APP数据库表)