SQLite Database Related Summary

Source: Internet
Author: User
Tags float double sqlite sqlite database time and date

1.

SQLite is a light-weight, relational management system, is embedded, low-occupancy resources, portability, faster than MySQL processing speed, the mainstream version is now Sqlite3

2.

The data types in SQLite are text (string, utf-8,utf-16 encoded), (REAL) floating-point, (integer) signed integer, (BLOB) binary data, can hold any binary data, and several other infrequently used (VARCHAR, CHAR, CLOB) converts the type of text (FLOAT DOUBLE) into a real type (NUMERIC) into an integer)

Note: There is no Boolean type in SQLite, can be replaced with integer 0 and 1, there is no time and date type, can be replaced by text,real, etc.

3.

The basic SQL statements that are commonly used are:

--Create a table:

creat table name (Field 1, Field 2, Field 3 ...);

-If the table does not exist, then create

creat table if not EXISTS name (field 1, Field 2, Field 3 ...)

--------Delete the entire table:

DROP table Name

--------Inserting data:

Insert into table name (Field 1, Field 2, Field 3 ...). Values (value 1, value 2, value 3 ...)

---------query:

Select field name from table name---------query data for a field

SELECT * FROM table name---------all data for all fields

----------Modification:

Update table name set field name = ' new value ' where query condition

SQLite Database Related Summary

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.