#include #include #include static int callback(void *NotUsed, int argc, char **argv, char **azColName){ int i; for(i=0; i 20000 AND b < 50000;"); RUN("SELECT count(*) FROM t1 WHERE c like '%three%';"); TIME("selects"); // Index RUN("CREATE INDEX iiaa ON t1(a);"); RUN("CREATE INDEX iibb ON t1(b);"); TIME("create indexes"); RUN("SELECT count(*) FROM t1 WHERE a == 4"); RUN("SELECT count(*) FROM t1 WHERE b > 20000 AND b < 50000;"); TIME("selects with indexes"); sqlite3_close(db); return test(); }