Copy the XX. DB file to the res \ raw directory of the eclipse Android project, as shown in 1. All files in the res \ raw directory are not compressed, so that files in the directory can be extracted directly.
Use the opendatabase method to open
Although IOS supports coredata, which is encapsulated by SQLite, users who are familiar with SQL may feel unfamiliar. In fact, when there is no coredata, We will directly operate SQLite. Here we will introduce two open-source projects, that is,
You can copy the dictionary. DB file to the res/raw directory of the eclipse Android project, as shown in 1. All files in the Res/raw directory are not compressed, so that files in the directory can be extracted directly.Use the opendatabase method
SQLite inserts data slowly because it is already in the form of a file on the disk. Each time you access the data, you need to open the file. If you perform a large amount of operations on the data, it is very slow.
The solution is to commit in
SQLite is a lightweight database engine that features independence, embedding, and zero configuration. It can be used as an alternative to access or MySQL, and is especially suitable for small and medium websites and embedded applications, the
Installation:
Download the latest SQLite version from the official website
Http://www.sqlite.org/
For: http://www.sqlite.org/download.html
The official download page provides download of many versions... Here we will introduce it;
Source code:
SQLite IntroductionI. SQLite is an embedded database that implements a large subset of SQL 92 standards. it combines database engines and interfaces in a database, and is famous for storing all data in a single file. I think SQLite functions are
Generally, the static data type is fixed, while SQLite uses the dynamic data type, which is automatically determined based on the stored value. SQLite has the following five data types:
1. null: null.2. Integer: A signed integer, depending on the
/*************************************** *************
Everyone knows that it will be very tiring to write a blog.
Hope = reprint please indicate the source: http://blog.csdn.net/ta893115871
Please do not pity your mouse, (* ^__ ^ *) Xi ......
******
Written in front of, this article Reprinted from http://www.eoeandroid.com/thread-81912-1-1.html
// Query by page 2 Public cursor getdaterawperson (INT startresult, int maxresult) {// list persons = new arraylist (); sqlitedatabase database =
To use a database, you must first find out its data type, isn't it? SQLite data type and its simplicity:
Null. Null
Integer. Integer
Real. Floating Point Type
Text. Text Type
Blob. Binary type, used to store files.
The above is the
StatementYou are welcome to repost this article, but please respect the author's Labor achievements. repost this article and keep the statement in this box. Thank you.Article Source: http://blog.csdn.net/iukey
If you want to manipulate a
StatementYou are welcome to repost this article, but please respect the author's Labor achievements. repost this article and keep the statement in this box. Thank you.Article Source: http://blog.csdn.net/iukey
SQLite is a good thing for mobile
SQLite common functions:
1. Open the database:Note: To open a database, the file name does not have to exist. If the file does not exist, SQLite will be automatically created. The first parameter refers to the file name, and the second parameter is
This article provides an overview and Getting Started Guide for using the SQLite C/C ++ interface.
Since the early stage of SQLite only supports five C/C ++ interfaces, it is very easy to learn and use. However, with the enhancement of the SQLite
SQLite database connection method
SQLite. net
Type:. NET Framework class library
Usage: system. Data. SQLite. sqliteconnection
Basic
Data Source = filename; version = 3;
Version 2 is not supported by this class library.
Using UTF16
Data Source =
Document directory
3.1 create a file database and Memory Database
3.3 Import and Export of file database command format
I. First recognized SQLite
By chance, when I came into contact with SQLite, I couldn't help but wonder how small and powerful
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.