OLD | NEW |
1 # 2010 April 15 | 1 # 2010 April 15 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 10 matching lines...) Expand all Loading... |
21 execsql { | 21 execsql { |
22 CREATE TABLE "test" ("letter" VARCHAR(1) PRIMARY KEY, "number" INTEGER NOT N
ULL); | 22 CREATE TABLE "test" ("letter" VARCHAR(1) PRIMARY KEY, "number" INTEGER NOT N
ULL); |
23 INSERT INTO "test" ("letter", "number") VALUES('b', 1); | 23 INSERT INTO "test" ("letter", "number") VALUES('b', 1); |
24 INSERT INTO "test" ("letter", "number") VALUES('a', 2); | 24 INSERT INTO "test" ("letter", "number") VALUES('a', 2); |
25 INSERT INTO "test" ("letter", "number") VALUES('c', 2); | 25 INSERT INTO "test" ("letter", "number") VALUES('c', 2); |
26 SELECT DISTINCT "number" FROM (SELECT "letter", "number" FROM "test" ORDER B
Y "letter", "number" LIMIT 1) AS "test"; | 26 SELECT DISTINCT "number" FROM (SELECT "letter", "number" FROM "test" ORDER B
Y "letter", "number" LIMIT 1) AS "test"; |
27 } | 27 } |
28 } {2} | 28 } {2} |
29 | 29 |
30 finish_test | 30 finish_test |
OLD | NEW |