SQLite Fuzzy QueryOne, example
Note: This article is a simple example of SQLite fuzzy query
1. Create a new model that inherits from NSObject
The code in the class:
Copy Code code as follows:
//
YYPerson.h
03-Fuzzy Query
//
The example in this article describes how Android uses SQLite to store data. Share to everyone for your reference, specific as follows:
Generally in the development program, regular use of data storage functions, such as the use of Delphi
The example in this article describes how the Android operation SQLite the database under the Assets folder. Share to everyone for your reference. Specifically as follows:
Because this project needs to bring data, so put the data into a SQLite
"Introduction to SQLite management Tools"
The following 2 sections are recommended:
Navicat for SQLite: Very powerful, almost contains all the necessary functions of database management tools, easy to operate. The only disadvantage is that you
This article describes the PHP implementation of the SQLite database connection classes. Share to everyone for your reference. The implementation methods are as follows:
The SQLite database connection class is the use of PHP and SQLite to connect
1) Create the database file:>sqlite3/home/test.db EnterA test.db is generated under the/home path.This also SQLite3 load the test.db2) use. Help to see what the orders are.>.help Enter3) You can enter the SQL statement directly here to create the
Function:1. Database Design Establishment Database2.Python parsing Excel files3.Python read file name and parse4. Store the parsed data in the librarySet up a databaseBased on the requirements of the database, the establishment of two tables, and
Operation of the SQLite file databaseQT plug-in installation configuration1, VS2008 installation of the QT development packageUnzip 4.7.3.rar to C:\Qt\4.7.3\Qt for VS addin2. Install and configure Visual Assist XKey difficulty 1, connect SQLite file
SQLite--Embedded relational database 1. SQLite data type: typelessness (no type) 1, can save no matter what type of data to the table in the Random column 2. Support common types such as: NULL, VARCHAR, TEXT, Integer, BLOB, CLOB, etc. 3, the only
First, view the version information:#sqlite3-versionSecond, sqlite3 commonly used commands1, the current directory to establish or open the Test.db database file, and enter the SQLite command terminal to sqlite> prefix identification:2. Output Help
The same SQL statement, the data can not be found toSELECT * FROM table1 where t1>= ' 2017-6-1 ' and t1Change intoSELECT * FROM table1 where t1>= ' 2017-06-01 ' and t1So that we can find out the data toThe T1 in the database can be set to the text
"SQLite database is a very small embedded open source database software, which meansThere is no independent maintenance process, and all maintenance is from the program itself.In Python, use sqlite3 to create a connection to the database when the
If I want to fetch 11-20 of the Students table data, then: Select * from Students Limit 9 Offset 10;Indicates that the data is fetched from the students table, skipping 10 rows and fetching 9 rows. You can also write a select * from Students limit 10
1. What is FmdbFmdb is the SQLite database framework for the iOS platformFmdb encapsulates the C language API of SQLite in OC modeAdvantages of 2.FMDBUse more object-oriented, save a lot of cumbersome, redundant C language codeMore lightweight and
CSV file to batch import data to SQLite.Code:f = web.input (Bs_switch = {}) # Bs_switch is the name of the From Form file fieldData =[i.split (",") for I in f["Bs_switch"].file.read (). Split () [1:]]#这里的步骤:#1, read the imported content:
Because it is difficult to change files in XML storage, we finally chose to use database storage.
A try is very convenient and fast
Source code:
Public class dbhelper extends sqliteopenhelper {private final static string database_name =
If you need a more robust data storage mechanism, you need to use a relational database. on Android, sqllite is required.
SQLite features: lightweight, embedded, and relational databases. It is portable, easy to use, small, efficient, and reliable.
Prepare is used to initialize the pre-SQL statement finalize the SQL statement used to release prepare
Reset is used to reset pre-SQL statements for reuse ..Exec is used to directly execute non-seletc SQL statements. If okstep is returned
The previous term was used as a project (Embedded Linux). Because a large amount of data needs to be stored, it takes up to 30 days. It was originally intended to be saved to the file and re-parsed every time the application was started. However,
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.