To search for particular rows using WHERE & LIKE
SELECT * FROM tablename WHERE columnname LIKE :columnname"
:columnname holds the value "%somevalue%
Below are the few syntax for SQLite & Adobe AIR
Table Creation
CREATE TABLE IF NOT EXISTS tablename (id INTEGER PRIMARY KEY AUTOINCREMENT, column1 TEXT NOT NULL, column2 TEXT, column3 TEXT, columndate DATE)
Selecting rows using WHERE
SELECT * FROM tablename WHERE columnname = "somevalue"
SQLite Date Comparison
SELECT * FROM tablename WHERE date(columndate) = date("somevalue")
SQLite Multiple WHERE conditions
SELECT * FROM tablename WHERE columnname = "somevalue" AND columnname2 = "somevalue"
SQLite INSERTing rows
INSERT INTO tablename (column1, column2, column3, column4) VALUES ( "somevalue", "somevalue", "somevalue", "somevalue" )
SQLite INSERTing multiple rows at once
INSERT INTO tablename (column1, column2, column3, column4) SELECT 'somevalue', 'somevalue', 'somevalue', 'somevalue' UNION SELECT 'somevalue', 'somevalue', 'somevalue', 'somevalue'