First contact with the development of IOS developed to understand that a cache database is SQLite, the back has been to SQLite as the backbone of the use, has not been exposed to a large number of data reading and writing, so in the performance
1. Ado.net Provider for SQLite.
The ado.net provider is provided by a company in Hong Kong (seemingly). See Project Address: Http://sourceforge.net/projects/sqlite-dotnet2
2. For sqlite.net encapsulation, provide a simple operation help
Copy Code code as follows:
?
/**
* SQLite class
* 2009-5-6
* Even Wanchun
*
*/
Class SQLite {
Current SQL directive
Public $_mquerystr = ';
Current results
public $_mresult = null;
SQLite connection Handle
protected $_msqlite;
Use examples:
Package cn.hackcoder.beautyreader.db;
Import Android.content.Context;
Import Android.database.sqlite.SQLiteDatabase;
Import Android.database.sqlite.SQLiteOpenHelper;
Import Android.util.Log;
/**
* Created by Hackcoder on 15-1
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
The SQL Standard has a TRUNCATE TABLE statement that clears all the contents of the table. However, SQLite does not support this statement. You can use "DELETE from TableName" directly in SQLite. For most DBMS, using delete is not as fast as
Tried a day ... Local testing is good (WIN10 64-bit +vs2015) and is not always deployed on the server (WIN2008 32-bit +IIS6). What to say on the internet do not bundle, add x86x64 directory and put that SQLite.Interop.dll to different directories,
Zhu JinchanSource: http://blog.csdn.net/clever101The Sqlite3_open function is required to open a SQLite database, but the first parameter of the Sqlite3_open function is the absolute path to the database file. It is fastidious and must be a UTF8
SQLite as we all know, not much to say.Sometimes the data is large, or there is an exception in the stored procedure, and the database can be problematic.This is the previous company product problems, resulting in software are not open, I took a lot
When using SQLite in EF6. SQLite needs to install Sqlite-netfx40-setup-bundle-x64-2010-1.0.97.0.exe. I do not want to launch the project when the implementation of the program, and then see the packaging process, the SQLite installer is actually
Greendao:Generates a data access without the code we write to access the database: CORE schematic diagram Generate codeis to generate a build factory of the corresponding Java class with the generator. Public static void main(string[] args){
Database is generally divided into relational and object type, the relationship is the mainstream, object-based database is directly put objects into the database.Common relational database:pc:oracle MySQL SQL Server DB2Embedded/Mobile: SQLiteThis
char* pszsql = "SELECT * from TableA where ID >=?"When the above SQL statement is present, it needs to be populated, and this time it willCall the Sqlite3_bind_int function to populate the?Sqlite3_bind_int (stmt, 1, 2);Detailed description: The
SqliteLightweight, embedded, relational databaseWidely used database systems such as Android and iOSSQLite database can be easily used in SQL statements, to achieve data increase, modification, deletion, query and other operationsSqliteopenhelper:
If I want to fetch 11-20 of the Account table data, then: Select * from the person Limit 9 Offset 10;Represents getting data from the person table, skipping 10 rows, and fetching 9 rows. You can also write select * from the account limit 10,9 and
Regular data uses fixed static data types, and SQLite uses Dynamic data types, which are automatically judged based on the value of the deposit.SQLite has the following five types of data:1.NULL: null value.2.INTEGER: A signed integer, depending on
SQLite Data Type Summary1. Strictly speaking, SQLite has no data type. SQLite uses dynamic data types, that is: the type of data depends on the data itself, not its container (field)2. Storage type (Storage Class): The representation of data after
First, PRIMARY key
uniquely identifies a single row ( only one primary key in a table )
The
primary key should be meaningless to the user ( commonly used for indexing )
never update the primary key , or
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.