Android virtual machine adb shell Sqlite3 database

Source: Internet
Author: User
Tags sqlite

ADB Shell Connection:

http://www.cnblogs.com/xiaobo-Linux/

Android Stores the data in the data/data directory.

We use the CD command to go to the data/data directory:

Cd/data/data

ls command you will see studdb.db, This is our studdb.db database.

  

Sqlite3 studdb.db

This command opens the studdb.db database, and if the studdb.db database does not exist, a new one is created that is named

The studdb.db database. ( Note that database name is different in case )

At the sqlite> prompt, enter

. Help this command lets us see a lot of commands

. Tables View all tables, for example, my system has Student and android_metadata two tables

SELECT * from Student;

We found three data. The way the database is displayed lets us get used to the Oralce, which is very uncomfortable, input

The following two commands let us change this display mode.

. Mode column

. Header on

re-enter select * from Student ; We look more comfortable.

 

The . Exit command exits SQLiteand returns to the # prompt.

Enter exit at the # prompt to exit Linux.

Android virtual machine adb shell Sqlite3 database

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.