Built-in SQLite database Operation DOS command from Android

Source: Internet
Author: User

1: What's called SQLite database

Android system kernel is a Linux system, Android system is very special, he brought a SQLite database, lightweight type of an embedded database

It occupies very low resources , in the embedded device, may only need hundreds of K of memory is enough. Easy to operate, if you've learned the basics of other databases before,

Operation can be said to be a lift.

2: What is the data type of this SQLite database? 

Integer integer signed integer -1,0,1,2,3 ...

The Real float is stored in 8-byte IEEE floating-point numbers.

Text. The value is a text string that is stored using the database encoding (UTF-8, utf-16be, or Utf-16le).

Blob. The value is a block of data that is stored as it is entered. A binary type stores the past.

3: Let's get started, the eclipse device is connected to the emulator, or the "real" phone.
3.1: Open dos command, cmd--->cd xxxxxxx----------> Enter the directory where your SDK development environment is located.
Sdk\platform-tools the directory where this folder is located.

(Detection: Adb.exe can run normally)

3.2: After entering in the previous step, test ADB devices shows the device (emulator or real phone) that is currently being successfully connected by Eclipse development Android

3.2: Test access to Android database Kernel command

ADB shell

If it is displayed # indicates that you are currently gaining access to the Android system's highest privilege administrator

If it is displayed, $ indicates that the normal permissions

3.3 Common DOS commands for SQLite

ls---> list displays the contents of the current folder

Sqlite3 settings.db---> command into the SQLite operator interface


. tables-View All tables


SELECT * from XX table name; ---> Query is Data with no fields.


. Header on---> Set table for display field names


. Help---> This command lets us see a lot of commands


. mode column---> Query data are typeset, clear and unambiguous.

Built-in SQLite database Operation DOS command from Android

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.