2 CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT,descr TEXT);
3 -- [sql2cpp] name=select_all
5 SELECT name,descr FROM test;
7 INSERT INTO test VALUES;
8 INSERT INTO test (name,descr) VALUES;
9 SELECT * FROM test LIMIT ?;
10 -- [sql2cpp] name=select_distinct_limit
11 SELECT DISTINCT * FROM test ORDER BY id DESC LIMIT ?;
12 -- [sql2cpp] name=Delete
13 DELETE FROM test WHERE id = ?;
15 CREATE TABLE loc (id INTEGER PRIMARY KEY AUTOINCREMENT, city TEXT, test_id INTEGER);
16 SELECT test.id FROM test JOIN loc ON test_id = id;