Steps
1. Prepare the SQLite Database
Note: Create or copy a database, open it, and execute the following two SQL statements in sequence (set the current location without an error)
Create
Table
"Android_metadata" ("locale"
Text
Busy recentlyWeibo fan genieI am very busy. I have no time to write a blog post. I want to secretly write a few lines today.
The commonly used datediff function in MSSQL returns the number of days difference between two days. In SQLite, there
The source of inspiration mentioned the release of sqlite3. Before his blog, I am reading new features of sqlite3, because we are using SQLite in actual projects. I used to reply to the blog. I thought about it later. I 'd better post it myself.
Select
* Fromtablewhere number like '%/%' escape '/'...
When the sqlite3 database is searching, some special characters need to be escaped. The specific escape is as follows:
/-> //
'->''
[-> /[
]->/]
%->/%
&-> /&
_-> /_
(-> /(
)-> /)
The number of files on the virtual hosts purchased by our grassroots webmaster is usually limited. A large number of small files occupy a large amount of resources. In the outdated vertices, Douban is recommended for solutions, but the host
ArticleDirectory:
1. Download The sqlite3 source code:
2. Download The sqlite3.dll file:
3. Generate the sqlite3.lib file:
4. generate or download the sqlite3 shell file:
5. Create a database and a data table:
6. Conclusion:
1.
I. common expressions:
Like most relational databases, SQLite can well support expressions provided in the SQL standard, and its functions are consistent with the SQL standard, such: | */% +- <> & | = ===! = <> Is not in like And Or ~ Not
Original article:
1.Source codeObtain
SQLite is an embedded database with powerful functions and fast computation speed. It is encapsulated in C language and provides over 80 command interfaces, which are highly portable and easy to use.
:
SeriesArticleNavigation
Using flex in Adobe AIR to connect to the SQLite database (1) (creating databases and tables)
Use flex in Adobe AIR to connect to the SQLite database (2) (add, delete, modify, and statement parameters)
A. SQLite corresponds to the Python type
Example 2
Import Sqlite3
Def Sqlite_basic (): # Connect to DB Conn = sqlite3.connect ( ' Test. DB ' ) # Create cursor C = conn. cursor () # Create Table C.exe cute ( ''' Create Table
I. Introduction:
SQLite is currently the most popular open-source embedded database. compared with many other embedded storage engines (nosql), such as berkeleydb and membase, SQLite supports some basic features of relational databases, such as
Use sqlite3_open to open a database
Prototype:
IntSqlite3_open (Const Char* Filename,/*Database filename (UTF-8)*/Sqlite3** Ppdb/*Out: SQLite dB handle*/);
Use this function to start database operations. Two parameters are required. One is the
Today, a friend tested SQLite and concluded that the efficiency of SQLite was too low. It took 2 minutes to insert 1000 records in batches!
Below is the test he sent me
Code . My dizzy ~~~~~~
Using system. Data;Using system. Data. Common;Using
1. Ado. net provider for SQLite.
ADO. NET provides
Program It is provided by a company in Hong Kong. For the project address, see: http://sourceforge.net/projects/sqlite-dotnet2.
2. encapsulate SQLite. NET and provide a simple operation help class.
Preface: the implementation of the SQLite blocking mechanism requires the support of the underlying file system. Both Linux and Windows provide the file lock mechanism, which provides powerful support for SQLite. This section describes the file
This article mainly describes the analysis and summary of time functions in SQLite and provides use cases. The examples given in this article are all tested.SQLite time/date function types:1. datetime (): Date and time of Generation2. date (): date
SQLite supports three thread modes:Single thread: In this mode, mutual exclusion is not performed, and multithreading is insecure. Disable all mutex locks. errors may occur during concurrent use. This parameter is enabled when SQLITE_THREADSAFE = 0
In VC ++, you can use the sqlite3.dll interface to operate the sqlite database, including opening the database, inserting and querying the database. If the input parameters of the operation interface contain Chinese characters, the operation will be
Recently, I took a small project in the United States. The main requirement is to combine the data exported from the disk (DBF format) with other data (csv format) to generate a new data table, which facilitates query and error correction. The other
SQLite is organized by B-Tree in external databases. For details about B-tree, refer
**
** Donald E. Knuth, the art of computer programming, Volume 3:
** "Sorting And Searching", pages 473-480. Addison-Wesley
** Publishing Company, Reading,
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