C # Connect with SQLite ... MethodHttp://www.cnblogs.com/virusswb/archive/2010/09/17/SQLite1.html1 About SQLiteSQLite, is a lightweight database, is to comply with acid-related database management system, its design goals are embedded, and has been
ide:vs2005Language: C #Component: sqlite-netfx20-setup-bundle-x86-2005-1.0.92.0Brief introduction:This example uses the password and foreign key features of SQLite. and close temporary files (journal mode=off).Demonstrate the practicality of C #
The source of inspiration mentioned the release of sqlite3. Before his blog, I am reading new features of sqlite3, because we are using SQLite in actual projects. I used to reply to the blog. I thought about it later. I 'd better post it myself.
Select
* Fromtablewhere number like '%/%' escape '/'...
When the sqlite3 database is searching, some special characters need to be escaped. The specific escape is as follows:
/-> //
'->''
[-> /[
]->/]
%->/%
&-> /&
_-> /_
(-> /(
)-> /)
Principle: The file database SQLite allows multiple processes/threads to read at the same time, but only one thread to write at the same time. During write operations, the database file is deprecated. In this case, any other read/write operations
The official developer of SQLite has given a simple example, the address of this example is http://docwiki.embarcadero.com/RADStudio/XE4/en/IOS_Tutorial:_Using_SQLite_in_an_iOS_Application.
In this exampleDbexpressControls for database
1. Use Add references to reference system. Data. SQLite. dll in the bin directory of the SQLite ADO. net installation directory.
2. Create a database file: because it is always a 0-byte file, I/O can also be used (?!).
System. Data. SQLite.
1 top This is a frequently asked question, for exampleSqlserverYou can use the following statement to obtain the first 10 records in the record set: Select top 10 * from [Index] order by indexid DESC; HoweverSQLStatement inSQLiteCannot be
SeriesArticleNavigation
Using flex in Adobe AIR to connect to the SQLite database (1) (creating databases and tables)
Use flex in Adobe AIR to connect to the SQLite database (2) (add, delete, modify, and statement parameters)
Features
Table structure design, data maintenance, DDL generation, encrypted database support, sqlite2, and 3
The only defect, charging, with a trial period
:
Http://www.sqlitedeveloper.com/downloads
We need to develop a SQLite-based Android software. Because the data used is stored in access, you need to convert access to XML or SQLite. In the XML conversion process, due to a large amount of data, the transfer encountered insufficient memory.
Record Common commands and tips
Display records: . Mode col. Headers onSelect * from test limit 10
The above command will open the header and automatically typeset it, as shown belowItem_id tag---------------------1 CSS-2 CSS-4 E-Ink
Get the
AProgramOne installation requires several pieces of data,The current program first checks whether the table exists. If the table does not exist, it is created. If the table exists, it is not created. So I went online for half a day and found a
For example, if you insert 1 million data records to a database
Sqlite3_exec (dB, "insert into name values 'lxkxf', '24';", 0, 0, & zerrmsg );
It will repeatedly Open and Close database files for 1 million times, so the speed will of course be
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 [,...])
Just a few days after I learned C ++, I had to use the database for the program, and I didn't want to use the control of MFC or something that I hadn't studied yet. I found an open-source small program that can be embedded.
Type database SQLite
# 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
Attach of SQLite Memory Database I have inserted 10 million pieces of data into the memory database a. I want to import a to a physical file B (with the same table structure). Should I use the attach command? Is there anyone else to give me a
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