ADB shell view database in emulator (3.8.6 previous version does not support recursive queries)

Source: Internet
Author: User
Tags clear screen

I'm going to look at the database in Eclipse and operate it through CMD. Directory path is:/data/data/com.abc.oa

It is more convenient to use the SqLite3 command directly in the ADB shell.

1. Open cmd

2. Direct input to adb shell


3. Enter cd/data/data/com.sinping.oa/databases carriage return (Enter the database folder)


4. Input LS (list all database files. db)


5. Input Sqlite3 sinpingoa.db


6. You can write the SQL statement at this time (remember the end of the statement plus;)


7. The following two commands are used to display data with headers and columns:

With. Mode column

With. Header on

8. At the sqlite> prompt, enter
. Help this command lets us see many commands
. Tables View all tables, such as student and android_metadata two tables in my system

. Quit Exit Sqlite3

. CLS Clear screen (not available in sqlite3)

Exit to C and then use Exit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.