How to view SQLite database files from a command line window

Source: Internet
Author: User
Tags sqlite sqlite database

1. Locate the Platform-tools folder under the Androidsdk directory, and you will find a Adb.exe file under the directory.

Go to the system environment variable to set the value of path, add the path where the Adb.exe is located.

2. In the Command Line window, enter: "adb shell" into the console

3. Enter the cd/data/data/package name. Project name (lowercase)/databases/"(such as: Cd/data/data/co

m.keqi.test/databases/) Enter the storage path where the project file resides

4, you can use the "ls" command to view the files in this directory

5. Enter "Sqlite3 + database name. db" (for example: "Sqlite3 bookstore.db") to open the database

6. You can enter ". Table" to see which tables exist in the database

7. You can enter ". Schema" to view the Build table statement

8. Through SQL query statement "SELECT * FROM table name" (such as: "SELECT * from book")

How to view SQLite database files from a command line window

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.