SQLite is especially convenient for storing mobile phone data, but I found some problems during usage:
Data Type:
Case Insensitive
Text Text
Numeric Value
Integer Integer
Real Decimal
None No type
The above data type is correct.
you can use the official sqlite3.exe tool to operate SQLite databases on the Internet. go to management: sqlite3.exe D: \ test. DB // assume that the data is d :\\ test. DB . databases // display show databases of all databases and MySQL; .
Hey hey, it seems that if you want to get the current time that meets the local region settings, you must use the date function to convert it,However, only the date function returns the current date, And all I need is to return the current date and
SQLite database third-party Java extensions: http://www.zentus.com/sqlitejdbc/
There are 2 packages, one is nested (embedded) and the other is native (local ).
The difference is: Nested does not require additional DLL files, but it is slow. Native
Recently, a small database was needed for the project. I found SQLite, the simplest and most convenient database I have ever seen, and I can get the original code for free, I especially admire the author of SQLite!
SQLite is:
#vp_maindiv{font-family: Arial, Helvetica, sans-serif;font-size: 10pt;line-height: 1.5em;/*background-color:#C8E0D8;*/background-color:#C2D8FC;border-style:dashed;border-width:2px;border-color:#B7B7B7;}#vp_maindiv dl,ul{font-size: 10pt;}-->
A small
Transaction:
A transaction defines the boundary of an SQL command. This group of commands, or all executed as a whole, are not executed, or are called atomic principles. The essence of a transaction is that all transactions are executed, or none of
Advantages of preparing for query:
Callback interfaces are not required, and the encoding is simple and clear. functions that provide information are associated to obtain the column storage type, declaration type, mode name, table name, and database
Original Title: SQLite and multiple threads
SQLite supports three thread modes:1. Single-thread modeIn this mode, mutual exclusion is not performed, and multithreading is insecure.2. MultithreadingIn this mode, using a single database connection in
1. Save the database to the memory of the mobile phone.
1.1 The operation method is relatively simple. We only need to write a class that inherits the sqliteopenhelper class to complete related operations.
Public class sqlitehelper extends
I. Command Summary
Command
Command description
Remarks
. Database
View Database
. Dump
Back up the database and export SQL-format files from the database
SQLite>. output file. SQL SQLite>. Dump
To develop a website, we want to use SQLite for deployment convenience, so we should try a demo first. The local machine runs normally and then try it on the server, "the specified storage zone provider cannot be found in the configuration or is
Development Environment: ubuntu10.04 tq2440Step 1: Compile SQLite in arm-Linux1. Download SQLite
2.8.17
: Go to RegionNote: the download is sqlite-2.8.17.tar.gz.2. confirm that the arm-linux-toolchains.tgz has been installed on your Linux
Use SQLite for website search
Download the demo project-389 KB
Database file-1.38 KB
Download source code-111 KB
Introduction
If your website or program needs a text search engine, unless you write one, otherwise, you will hand over the data
Document directory
Usage
To facilitate the use of SQLite, a C ++ class of SQLite is encapsulated and supports both ANSI and UNICODE encoding. The Code is as follows:
Header file (SQLite. h)
/*************************************** * **********
When data is inserted in SQLite, a default statement is a transaction, and disk operations are performed on every piece of data.
If you need to execute SQL statements frequently, you can enable transactions explicitly to improve efficiency.
This article describes how to use the Sqlite embedded database in the asp.net web program. The sqlite database can be stored as a file in the APP_DATA directory of the site. It is suitable for small websites and does not need to buy SQL server space
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