ToProgramSave some data (the database is large and there are many categories), and you do not want to use files, because it is not easy to search and operations are also troublesome. So I went to a lightweight file database and looked at it. I
Author:Heero
Most databases are case insensitive when comparing strings. However, when we recently used SQLite, we found that the opposite is true.
Assume that the structure and value of the table user are as follows:
First download sqlite_source.zip from the official website. Note that it is not .tar.gz because the file is not for Windows platforms. Of course, you can also download from me, or click the connection below download:
A bash-2.05b # lsCERT devm radius rule sqlite3 uibase VPN bash-2.05b #./sqlite3 rule
// Start to enter the databaseSQLite version 3.5.4Enter ". Help" for instructions SQLite>. Tab
// Display tables in the databaseDomainname ruleipfilterstatout
Databases are an indispensable part of software. Traditional databases are getting bigger and bigger, which is a waste of Small and Medium applications. SQLite is a lightweight database that supports acid transactions without installation or
At the beginning, I used SQLite to write down some simple entry content and forget it.
Management tools: SQLite shell: the command line tool. When you look tired, you can practice the command and use it on the official website.:
In Android, there are several data storage methods, such as file storage and file database storage. Android comes with an SQLite database, embedded developers are certainly not unfamiliar with this cross-platform local file database. In Android, a
SQLite built-in function table
Arithmetic functions
ABS (X)
Returns the absolute value of a given numeric expression.
Max (X, Y [,...])
Returns the maximum value of an expression.
Min (X, Y [,...])
Http://www.cnblogs.com/Mr_JinRui/archive/2010/05/12/1733662.html(32) SQLite inserts a string with single quotes (')Use double single quotes, for example:Insert into XYZ values ('5 o' 'clock ');The database to be inserted is: 5 0' clock.
The SQLite
View code
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. text; using system. windows. forms; using system. data. SQLite; namespace wince database {public
Embedded relational database-SQLite,
Sqlite3 supports null, integer, real (floating point number), text (string text), and blob (binary object) data types,
Although it supports only five types, sqlite3 actually accepts data types such as varchar (N),
Added, deleted, and queried data. Bind the spinner control and the listview control to click the delete list option.
Package COM. example. splite; import Java. util. arraylist; import Java. util. list; import android. content. contentvalues;
When using a database, the main task is to establish a connection with the database and execute SQL statements.
SQLite contains the following two important objects (pointers to struct ):
Sqlite3,
Indicates the object connecting to the
More questions welcome to my forum and exchange http://tcwin.yuxa.com/vbs/
1. Open the database:Note: open a database. If it does not exist, it is automatically created. The first parameter specifies the file name, and the second parameter is the
# Include # Include
Static int callback (void * notused, int argc, char ** argv, char ** azcolname)/** The second parameter of callback is the number of columns in the query result, and the third parameter is the string array containing the values
The Pragma statement is an SQL extension of SQLite data and is unique to it. It is mainly used to modify the operations of SQLite database or internal data query. It uses the same form as select and insert statements, but there are several important
SQLite is different from most other modern SQL databases in terms of basic design goals, and its goal is simple. SQLite follows this goal, even if this occasionally leads to inefficiency of some features. Here are some defects of SQLite:
SQL-92
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.