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
SQLite provides a number of C function interfaces that you can use to manipulate the database. By using these interfaces, passing some standard SQL statements (with the char * type) to the SQLite function, SQLite will manipulate the database for you.
There are two ways to perform SQLite database transactions in C #: SQL code and C # code
1.SQL Code:
BEGIN ...
COMMIT
/rollback
2.c# Code:
using (Sqliteconnection conn = Sqlitehelper.getsqliteconnection ())
{
English addressArticle reference
Brief introductionAn important feature of a database system that supports transactions, such as SQLite, is atomic commit ( atomic commit ). That is, the write to the database in one transaction is either all
1.SQL access to the database is very convenient, with just three simple functions:Sqlite3_exec (Sqlite3 *db, char* Szsqlcmd, callback, 0, Char **zerrmsg)Sqlite3_close (Sqlite3 *db)static int callback (void *notused, int argc, char **argv, char
1. I use SQLite, the development of a good machine, the test machine is not. Later found to be missing driver (Driver not loaded Driver not loaded), code check and check, found should be missing DLL file (System does not prompt, is itself using
(a) PHP1. Download and installhttp://www.appservnetwork.com/Download appserv-win32-2.5.10 and install it from the above URL, and install PHP only when you install it.Because, we only use PHP in it.This is why this is done because PHP in Appserv
Once the database is created, we may want to see if the data in the database was successfully inserted, and many people prefer to use the graphical interface tools to manage the SQLite database. SQLite GUI management tool has many, I recommend using
Sqlite3 database, simple and powerful, compared to the INI file save user settings, more simple and secure, why use the data inventory user settings, by the developer to think about itEnter the topic:PB can be used in OLE DB in the case of ODBC
Cursor.movetonext () will be an exception, as followsE/androidruntime (2249): FATAL exception:thread-49E/androidruntime (2249): Java.lang.IllegalStateException:Cannot Perform this operation because the connection pool have be En
1. Insert Data---Here Book is a class of books#pragmaMakr Inserting Data-(void) Insetintotablewithid: (int) NameID Withname: (NSString *) name Withsex: (NSString *) Sex Withbook: (book *) abook{//Archiving of Abook (archive first)Nsmutabledata *data
Development environment: Windows 8.1Development tools: Visual Studio Express for WindowsIntroduction to SQLite Database1.SQLite is a lightweight embedded database, developed using C + +, with a very wide range of2.SQLite is a cross-platform database
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.
I,SQLite Introduction
On the Android platform, an embedded relational database-SQLite is integrated. sqlite3 supports null, integer, real (floating point number), text (string text), and blob (binary object) data types, although it supports
~~~~~ 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. Summary of Common Problems1 topThis is a frequently asked question. For example, you can use the following statement in sqlserver to obtain the first 10 records in the record set:[Pre]
Select top10 *
From[
Index]
OrderIndexid
Desc;
[/PRE]
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
Address: http://blog.csdn.net/arcgis_mobile/article/details/7597519
References
This article is a brief WP7 database connection (SQLite database) operation process, illustrated in Chinese, adapted to a variety of people, O (∩) O ~...
Preparation:
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