There are several types of sqlite operators, arithmetic operators, comparison operators, logical operators, bitwise operators1, arithmetic operatorsArithmetic operators mainly have +-*,% (take-out) This is very simple, for example, to achieve such
Lab Report
Course Name
Experiment 8 SQLite Database operations
Date of experiment
2016.5.6
Name of the experimental project
Multimedia application Development
Location of the experiment
S30010
Experiment 8 SQLite Database operationsPurposeDesign a Personal Address book, master the development of the database under the Android platform, the personal Address Book mainly includes the contact list and contact details and other
--Greenwich Date TIME, 8 hours later than Beijing time select datetime (' Now ');--Greenwich DATE Select date (' Now ');--local time (' Now ', ' localtime ');-- Date Time Format Select Strftime ('%y-%m-%d%h:%m:%s ', ' Now ', ' localtime ');--Add 1
In the previous article, we have implemented the display of database content in the ListView. But in our ListView, typesetting is not very good-looking, so this article, we come to beautify the listveiw. Haha, plainly, is to add a layout file to the
the name of the database operation class usually ends with DAO, what is DAO? DAO (data Access Object) is the first object-oriented database interfaceData entity class Public classTree {Private intIdPrivateString name;Private intAgePrivate floatPrice
1)To create a database file:>sqlite3 D:\test.db EnterA test.db is generated on the D-disk.And SQLite3 hung up on this test.db.2)Use. Help to see what the orders are.>.help Enter3) You can simply enter the SQL statement here to create a table, end it,
SQLite Paging Display: Select * FROM news ORDER BY id DESC Limit Offset10This article is based on the content of the official SQLite WIKI translation, if there is any improper translation of the place want to point out, after all, my English level
I. Basic creation Operation:
1. Create a table
CREATE TABLE IF not EXISTS t_dog (name text, age Bolb, weight real);
2. Inserting records
INSERT into T_shop (name, Left_count) VALUES (' fan ', 100);
3. Modify the
SQLite databaseFeatures: Lightweight, no installation required. A database corresponds to a file.-->sqlite3 d:/mydb.db (Create a new mydb.db file under D, open the file if it exists)-->.databases into the database.-->.schema Querying all table
The previous article has implemented the use of SQLite in the UWP as a local storage, as a mobile program, the timely response to user action is an important way to improve the user experience, so many of the UWP API is asynchronous. So how do you
Reprinted with: Http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2013/0714/1438.html from: The days of the online bubble.As with other databases, the general operations of the SQLite database include creating a database, opening a database,
To Create a table:creat table (field Type,field type..);
sqlite3 types of data stored
null: Identifies a null value
interger: Integer type
REAL: Floating point
TEXT: String
BLOB: Binary number
sqlite3
1. Open an existing database.Open Database-(BOOL ) opendb {// Red Section modified to its own database path return (sqlite_ok = = Sqlite3_open([@ "/users/apple/ Desktop/text/black/black/province_city_zone.db" utf8string], &db)); }2. Use the
Added column in SQLite database creation statement, error after running: No such columnIn the context of grammatical norms, that is,SQLite database creation, comma and space must be strictly string create_note = "CREATE TABLE" +
First reference namespaceusing System.ReflectionCheck out the Assembly class// // Summary: // represents an assembly, which is a reusable, version-free, and self-describing common language runtime application building block.
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.