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
To use the SQLite database in the ASP.net project, you first need to download a ado.net 2.0 SQLite data Provider, download the address: http://sourceforge.net/project/showfiles.php group_id=132486&package_id=145568, after the download is installed,
The study of SQLite on Centos7.2
Going to learn a very simple way to use the database.Reference http://www.runoob.com/sqlite/sqlite-tutorial.html
First, the preparatory workYou may need to install SQLite on CentOS First, here try '
When using the EF SQLite found that the like statement can not be fully queried, looked at the resulting SQL statement similar to this(CHARINDEX (@p__linq__2, [extent1].[ Leaguename])) > 0)Check the information, in SQLite is not support charindex
First download the jar package in HTTPS://GITHUB.COM/XERIAL/SQLITE-JDBCImportjava.sql.Connection;ImportJava.sql.DriverManager;ImportJava.sql.ResultSet;Importjava.sql.SQLException;Importjava.sql.Statement; Public classmainprocess { Public Static
SummaryWhen doing the C/s project, if you use Ef+sqlite, we do not know where the client will be installed, and need to dynamically set the path of the db.Solutions /// /// Data Context /// Public class Mycontext:dbcontext {
A SQLite introductionSQLite is an embedded database, similar to a file system, that is with the program. and MySQL and other database programs and data separation is not the same.Application scenario: Often used to save local configuration, similar
SQLite 3.19.1 has been published, SQLite is an open source, cross-platform, free small C library, the implementation of a separate, embeddable, transactional, server-free and 0 configuration of SQL database engine.Update content:
When you use
SQLite architecture:
SQLite is composed of interfaces, compilers, virtual machines, and backend servers.Program(Back end.
Two other architecture diagrams are relatively simple:
Interface ):
It is composed of SQLite C APIs.
1. MOBILE/data/ApplicationsProgramCreate a database under the package name/directory
If the size of the created database is small, you can use the sqliteopenhelper class that comes with Android to directly generate the database on the mobile phone
If you need to perform full-text search in it, it is also possible. Because SQLite supports the FTS table
Here, fts3 is actually an extension module of SQLite. It is a virtual table module that allows users to perform full-text retrieval.
The
Copy the XX. DB file to the res \ raw directory of the eclipse Android project, as shown in 1. All files in the res \ raw directory are not compressed, so that files in the directory can be extracted directly.
Use the opendatabase method to open
[Disclaimer: All Rights Reserved. You are welcome to reprint it. Do not use it for commercial purposes. Contact Email: feixiaoxing @ 163.com]
SQLite has never been heard of before, but it has never been used. Today, we downloaded the source code
Traverse the entire table and output the query results:
Int main (INT argc, char ** argv){Int RC, I, ID, CID;Char * Name;Char * SQL;Char * zerr;Sqlite3 * dB; sqlite3_stmt * stmt;SQL = "select ID, name, CID from episodes ";// Open the databaseSqlite3_
You can copy the dictionary. DB file to the res/raw directory of the eclipse Android project, as shown in 1. All files in the Res/raw directory are not compressed, so that files in the directory can be extracted directly.Use the opendatabase method
Add the following two sections to of Web. config or app. config.
Register SQLite data provider above, and I am. netframework 4.0
Description = ". NET Framework data provider for SQLite"Type = "system. Data. SQLite. sqlitefactory, system. Data.
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