First download SQLite source code, a total of 4 files, added to the project
Include header file:
#include "Sqlite3.h"
To create or open a database:
Open a database file and, if not, create a database file
int result=sqlite3_open ("game.db",
SQLite is an open source, embedded relational database, the first version of Alpha was released in 2000. SQLite has outstanding performance in portability, ease of use, compactness, efficiency and reliability.
The SQLite database created in Android
The first thing you need to know is the path to the database, CoreData created is usually placed in the sandbox Documents folder, and you built it to see yourself,Sqlite3 #数据库路径 #//Enter the database. Tables//View tables in the database.
SqliteData TypeReference:SQLite Data Types | Beginner's TutorialHttp://www.runoob.com/sqlite/sqlite-data-types.htmlThe SQLite data type is a property that specifies the data type of any object. Each column in SQLite has an associated data type for
Finally, to use the number attribution to the query, find a database file on the Internet. Size is more than 12M, compressed into a zip also has 1.9M, so for an apk size is very unfavorable, later looked at the database content, found that there is
SQLite tools I use the SQLiteStudio2.1.5 http://sqlitestudio.pl/?act=downloadSqlitestudio Open database file, click Tools-"Export, database, format Select SQL, export format options" selectionUse the SQL formatter to format exported SQL
Yesterday was ionic and SQLite toss a day, how can not realize read, later discovered, originally is Codova in the Sqliteplugin version problem.Problem: Database location or iosdatabaselocation value was now mandatory in OpenDatabase call, http://172
In my conscience, I can't tell you not to use core Data. It's good, and it's getting better, and it's been understood by many other cocoa developers that it's important to have new people join your group or need someone to take over your
Project, you need to update the data you inserted in the previous section. Go to write a detour, but through the network search, finally solved the problem.is to use the Last_insert_rowid () function to locate the rowid of the last inserted data.For
OverviewIn cocos2d-x, simple data storage, you can use Userdefault. So how do you store large, irregular data? We can use the SQLite database to store data. SQLite is a very extensive embedded database, it has a small, efficient, cross-platform,
0 PrefaceThis article describes how to use the SQLite database to store CPU temperature data in a Raspberry Pi. SQLite is a lightweight 0 configuration database that is ideal for use in Raspberry Pi and other embedded systems. SQLite documentation
In a single game there are dozens of scene props, each has its own state (get, not get, get the number) and so on, if in the game is trivial involved in the real-time storage of these props, then the use of text will be slightly slower, you can use
SQLite expert–personal EditionThe SQLite Expert is available in two editions, individual and Professional editions. The Personal edition is free and provides most of the basic management features.SQLite Expert allows users to manage SQLite3
First add on the blank form: tfdconnection, Tfdphyssqlitedriverlink, Tfdguixwaitcursor, Tfdquery, Tdatasource, TDBGrid (and associated at design time).You can also copy the contents of the text box below and paste it directly onto the form to
After publishing WCF on IIS, I have been trying to find the simplest database except XML. Although I have heard of SQLite, I heard that SQLite is used in both Android and iOS today.
There are various platform versions on the official website to
Download the Windows version from sqlite.orgSqliteand suffix are provided in the sqlitedll.zip file, including sqlite3.def andSqlite3.dll file, of course, you can directly use WIN32API such as loadlibrary to operate the DLL, find the functions
Reference: http://www.sqlite.com.cn/MySqlite/5/100.Html
SQLite is different from most other SQL database engines, because its primary design goal is to simplify:
Easy to manage
Easy to use
Easy to embed other large programs
Easy to maintain and
Continue with the previous example and use ListView to operate SQLite.
Use cursoradapter to present data in listview
In the previous example, we can add, delete, modify, and query the database in SQLite, read the data into the Cursor, and read the
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