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
Original address: http://www.cnblogs.com/wangmars/p/3914090.htmlSQLite, is a lightweight database, is widely used in a lot of embedded products, because the use of very little resources, two of the operation of the way almost and we contact the
You want to replace the SQL Server database for the project because SQL Server is too large and my project is just a small desktop application.Online search, found SQLite, is really a good thing, no need to install and deploy, the key is that
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
How to update SQLite complex tables in SQLite, if the tables you designed earlier do not meet your needs, you need to update the tables, such as modifying names and adding columns. If it is relatively easy to modify for a simple table, use the ALTER
Thanks to Comrade Scott Hess of Google, SQLite also launched the full-text search function.
SQLite creates a virtual table to split the input text into B trees based on rules such as spaces and punctuation. This improves the search speed.
How to
This morning, I was fixing a database problem. The SQLite database could not be opened, but there was still data in the database. How should I fix this database? My approach is:First, you need to export the database script. I have performed the
1: The SQL command ends with a semicolon (;) and two minus signs (;) represent comments.
2: Create film (name, length)
3: The slite field can store anything and will be automatically converted in due time
4: index creation speeds up create index
When operating SQL and access databases and passing like parameters for Fuzzy queries, you can use the following method:
SQL:
String SQL = "select count (ID) as rcount from tbarticle where classid in (" + IDs + ") and title like '%' + @ title + '%
SQLite:
The main features of lightweight database SQLite: 1. support events, no configuration, no installation, no administrator; 2. Support for most sql92;
3. A complete database is saved as a file on the disk. The same database file can be used
Written in front of, this article Reprinted from http://www.eoeandroid.com/thread-81914-1-1.html
// Delete the last character sb. deletecharat (sb. length ()-1); sqlitedatabase database = dbmanger. getwritabledatabase (); // execsqlis the execution
It is best to store tiles using SQLite. Is it slow to copy so many images when creating offline maps? Tired?
Mbtiles uses SQLite and has a rule to store tiles. What is mbtiles? Refer to my blog;[Mobile GIS] mbtiles mobile storage is not described
This log is generated by learning a Big Brother's code. At that time, he looked at his code and was confused. It took a long time to copy and debug the code. Original article see: http://blog.csdn.net/Android_Tutor/article/details/5654124
The
This blog post is based on the previous blog article. Questions about the previous blog:
It is recommended that you read the problem first Background: http://blog.csdn.net/xinwang24/article/details/7311944
There are two solutions I have tried. The
1. Common cmds
SQLite is a small embedded relational database that can be embedded into almost all programming languages, especially C, C ++, PHP, Perl, etc. This section describes how to use Perl to connect to and operate the SQLite database.
Use
Today, the manager gave me an SQL file of over 30 mb and asked me to test the data to locate the problem. By convention, I use navicat for SQLite to create a table and then import the SQL file. I went on to do other things. After more than an hour,
C Programming Interface of SQlite database (8)Utility Functions by Drizzle QQ: 253786989
SQLite also has some useful tool functions, although they may not be required for basic database tasks.
Version Management (Version Management)
(1)
const char
This is a small SQLite program I have seen on the website. I think it is well written for reference, so I have reprinted it. It is actually a small favorites.
The Code is as follows:
ActivityMain_1.java
Public class ActivityMain_1 extends Activity
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