Application initialization requires a lot of data to be injected into the SQLite, and a separate use of the For+insert method causes the application to respond slowly because the default statement of the SQLite when inserting data is a transaction
The example in this article describes how Android uses SQLite to store data. Share to everyone for your reference, specific as follows:
Generally in the development program, regular use of data storage functions, such as the use of Delphi
Introduction of SQLite
SQLite is a lightweight database that is included in the C library. It does not require a separate maintenance process and allows access to the database using nonstandard Variant SQL query statements. Some applications use
Because of the security of the database, not easily SQL injection, the execution of query statements, generally do not use the direct stitching of the statement, but the use of parameter transfer method. Then, when using the method of parameter
The introductory guide to using the SQLite database in Android is intended to be shared with you in the following sections,
1, what is SQLite
2. Using SQLite in Android
One, what is SQLite
SQLite is an open source, lightweight, embedded,
The example in this article describes how the Android operation SQLite the database under the Assets folder. Share to everyone for your reference. Specifically as follows:
Because this project needs to bring data, so put the data into a SQLite
SQLite doesn ' t support high concurrency. In case of a lot of concurrent access from multi-process or multi-thread, calling a SQLite r/w function are prone to hit th e case, the database is locked by another process or thread. The default behavior
SQLite comparisons are different based on different values, not depending on the field type, because SQLite is a weakly typed field --------------------------------------------------http ://www.sqlite.com.cn/mysqlite/5/127.html in version SQLite3.0
When trying to query sqlite3, return to emptyHowever, the return result of the query SQLite is as follows:[Email protected]/]# Rpm-qa SQLiteSqlite-3.6.20-1.el6.x86_64Also installed for SuSE version is: ~ # RPM-QA Sqlite3sqlite3-3.7.6.3-1.4.4.1In
It's been a little bit empty lately. Smartdb has been upgraded, and SmartDB1.3 has been simplified for ease of use and flexibility compared to previous versions.Smartdb to SQLite a layer of encapsulation, shielding a lot of details, making us easy
An aggregate function performs a calculation on a set of values and returns a single value. An aggregate function performs a calculation on a set of values and returns a single value. In addition to COUNT, the aggregate function ignores null values.
Some time ago, colleagues used SQLite to store some temporary data on the site server, but SQLite throws an exception when multiple people are concurrent: The database file is locked, and the database is locked, And this is in the customer
I had a headache when I encountered this problem. I found a lot of methods on the Chinese and English websites. I tried it and understood it slowly. Finally, I solved it through the following methods:
first, let's talk about the concept of SQLite:
SQLite is an open-source embedded relational database, which can reduce the overhead of the application Program to manage data, SQLite is portable, easy to use, small, efficient, and reliable.
Today, when studying other technologies, I checked the latest implementations of SQLite in. net. We found such a good thing. The home page is translated as follows:
System. Data. SQLiteIs an originalSQLiteEnhanced version.It will be an original
~~~~~ Some commonly used SQL commands for SQLite ~~~~~~~~~~~
Create a database table:
Create Table if not exists
Table-Name (column-def1, column-def2)
Table-name: the name of the database table.
Column-Def: column definition of the
I recently started learning Android programming and wrote a small project myself. One requirement is to initialize an SQLite database from a file. That is, I have a file containing a lot of SQL statements. I want my android program to execute this
If you don't talk much about it, directly add the code, and the comments in the Code are clear.
Package mars.com; import android. app. activity; import android. content. contentvalues; import android. database. cursor; import android. database.
Introduction to Open Source Embedded Database SQLite
Nils-Erik frantzell, Department of Computer Science, University of California, Santa Cruz
August 22, 2005
Since the emergence of commercial applications decades ago, databases have become a
Research and Implementation of SQLite Embedded Database System
[Date:]
Source: single-chip microcomputer and Embedded System Application Author: Chen Shuang, Jin Lin, guangbin Palace, Southwest Jiaotong University
[Font:Large Medium
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