SQLite is a lightweight database that complies with acid's relational database management system and is designed to be embedded and has been used in a number of embedded products today.
Characteristics of SQLite:
Lightweight
SQLite and C/s mode
First, overview:
of the C + + interfaces provided by SQLite, 5 of these APIs belong to the core interface. In this blog we will mainly introduce their usage and the core SQLite objects they involve, such as database_connection and
This article illustrates the method of C # operation SQLite database. Share to everyone for your reference, specific as follows:
This shows the reading and writing of the database and displaying its data in the form, in the following ways:
Read:
Python manage.py makemigrations # records all changes to models.py, but does not yet function in the database filePython manage.py migrate # models.py All changes to the database file, update the database, generate the formThe above two
I. Grouping by dateString paramstring="SelectStrftime ('%y-%m-%d',"+Dbconfig.running_log_date+") as"+Format_date+" from " +Dbconfig.table_running_log+"Group byStrftime ('%y-%m-%d',"+Dbconfig.running_log_date+")Order
Additional information: V5.7.4.4 Can ' t find the System.Data.SQLite.dll more info: mixed-mode assemblies are generated for the "v2.0.50727" version of the runtime and cannot be run at 4.0 when no additional information is configured The assembly is
2016-11-05Database Introduction The role of the databaseUsed to do offline data cachingData caching policies
plist, 归档 , 偏好设置 , 沙盒文件 ,SQLite数据库
The drawbacks of system-provided data storage methods
Inconvenient to manipulate
https://www.nuget.org/packages/System.Data.SQLite/Executing commands directly in the package Manager console automatically installs dependenciesInstall-package System.Data.SQLiteAfter the installation is complete, install a total of 4 DLLsAttempting
The current conversion only supports MySQL data tables with no foreign keysPrepare: Download and install Sqlite Expert softwareOne gets the. sql file in MySQL, gets the procedure omitted can directly export the SQL fileTwo new databases in SQLite
1.SQLite Lightweight . DP files are used in mobile phones Lightweight, embedded relational data model.SqliteopenhelperResponsible for creating open updates close databaseCreate a data tableSqlitedatabaseExecute SQL statementIncrease the data table.
With the use of idea, the problem is more and more, start the second summary of the problem.1, shortcut keys.Using Eclipse and using idea, shortcut keys are a big problem.And there are very many versions of the shortcut keys for online idea. Do not
The and operator and the OR operatorThese two operators, commonly referred to as join operators, are used to reduce the data selected by SQLiteThe AND operator is true when all conditions are trueSQLite>Select*fromwhere=2and= "BB"; ID nameage-
I. WHERE query criteria1. Operators(1) is null/is NOT NULL to determine control/non-null(2) Like fuzzy comparison string① wildcard characters1)% any number of characters2) _ Single character② usage1) Like '% condition% '2) Like '% condition '3) Like
In a computer system, there are generally two ways to save data:1. common file Mode2. Database modeUsing a database to manage large volumes of data is more efficient and more secure than normal file methods.The database system is generally composed
Intent:This function can be used to pass the signal to the principle page through intent to jump the interface, in order to make some processing:Use of SQLite:The method gets sqlitedatabase readable and writable, while Getreadabledatabase is
SQLite uses dynamic data types that can be used across platforms, unlike CoreData, which is specific to Apple: introduce the simple use in Xcode:Connect to the database firstThen introduce the header file #import Before the code starts, let's
Lab Report
Course Name
Mobile Internet development based on Android platform
Date of experiment
2016/5/6
Name of the experimental project
SQLite database Operations
Location of the experiment
Lab Report
Course Name
Mobile Internet development based on Android platform
Date of experiment
May 4, 2016
Name of the experimental project
SQLite database Operations
Location of the experiment
1, SQLite, is a lightweight database, is to comply with acid-based relational database management system, it is included in a relatively small C library. It is the public domain project established by D.richardhipp. It is designed to be embedded,
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