# xsql

sqltext:
CREATE TABLE t0(a,b);
CREATE TABLE l00(x UNIQUE, y);
CREATE TRIGGER r0 AFTER INSERT ON t0 BEGIN
UPDATE l00 SET y=y+0 WHERE x=new.a;
INSERT OR IGNORE INTO l00 VALUES(new.a,00);
END;
INSERT INTO t0 VALUES('0','0');�INSERT INTO t0 VALUES(5,0);
SELECT*FROM l00 ORDER BY x;


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000@VALUES('ab00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('ABX0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(2001-01-011,1),( 1=11,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a, x FROM t1, t2 ORDER BY 1, 2;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1( "a"UNIQUE,"b"R PRIMARY KEY ON CONFLICT REPLACE, b);


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, avg(1) b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATE UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a)NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


sqltext:
CREATE TABLE t0(x TEXT UNIQUE, y TEXT�UNIQUE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT DISTINCT* FROM t0 WHERE (x='000' OR y='000') AND x ISNULL N


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND b=A AND c=? AND d=? AND e e=?;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,b);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in ();
UPDATE t1 SET b=a 10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a=10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,id,b,x,stat)VALUES('t1','t1a','0'),('t1','t1b','10000');
AN


sqltext:
CREATE TABLE t0(a INT0000);
INSERT INTO t0 VALUES('200');
INSERT INTO t0 VALUES('30');
INSERT INTO t0 VALUES('4');
SELECT min(a), max(a) FROM t0;


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE a IN (1,2) ORDER BY b;VACUUM


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, printf(1,1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF ORa ON t10BEGIN
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT nullif(1,1) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersat)on_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t1(a, b);
CREATE INDEX i1 ON t1(a);
CREATE VIEW v0 AS SELECT * FROM t1 INDEXED BY i) WH


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY  a,b,a, '000' FROM;


sqltext:
CREATE TABLE t0(a INTEGER PRIMARY KEY, b);
INSERT INTO t0(b)VALUES('000');
INSERT INTO t0(b)VALUES('000');
INSERT INTO t0(b) VALUES(NULL);
INSERT INTO t0(b) VALUES(NULL);
INSERT INTO t0(b)SELECT b||'0' FROM t0;
INSERT INTO t0(b)SELECT b||'0' FROM t0;
INSERT INTO t0(b)SELECT b||'0' FROM t0;
INSERT INTO t0(b)SELECT b||'0' FROM t0;
INSERT INTO t0(b) SELECT b||'0' FROM t0;
SELECT count(a), count(b) FROM t0;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr( char( a,b,-01,01),b)OR a='0' ORDER BY +x;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, quote(1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count(DISTINCT),
NULLIF( (1),'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
CREATE VIEW v2 AS SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz, tb0th ORDER BY 1 LIMIT 1;ANALYZE


sqltext:
BEGIN TRANSACTION;
CREATE TABLE a(i0 INT0000);
INSERT INTO a VALUES(1);
INSERT INTO a VALUES(2);
INSERT INTO a VALUES(3);
CREATE TABLE b(i0 INT0000);
INSERT INTO b VALUES(NULL);
INSERT INTO b VALUES(3);
INSERT INTO b VALUES(4);
INSERT INTO b VALUES(5);
COMMIT;
SELECT* FROM a WHERE i0 NOT IN (SELECT "a","b"HAVING b);


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE _rrrrrrrrrrrrrrr____________d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2* random()a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
CREATE TEMP TABLE t0(a PRIMARY KEY, b, c);
CREATE INDEX t000000 ON t0(c COLLATE BINARY);
CREATE INDEX t000002 ON t0(b COLLATE NOCASE);REINDEX rtrim(


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( sqlite_version()),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
CREATE TABLE t0t0000(� COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000000000�000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('AB000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OF0000000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, likely(1) '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 3, 3,a, '000' FROM;


sqltext:
CREATE TABLE t4(a TEXT);
INSERT INTO t4 VALUES('0');
INSERT INTO t4 VALUES('000');
INSERT INTO t4 VALUES('04');
SELECT min(a)MATCH(a) FROM t4;


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a, random() x FROM t1, t2 GROUP BY 1, 2;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| julianday(1,0,1) || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=C AND c=? AND d=? AND e=B;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%0';


sqltext:
CREATE TABLE t0(a, b, c);
INSERT INTO t0 VALUES($0,$b, $c);
INSERT INTO t0  VALUES($0, $b, $a);VALUES($0, $b, $a);


sqltext:
CREATE TABLE t15(a INTEGER PR,MARY KEY, b);
INSERT INTO t15(a,b)VALUES(10,'0'),( 1=120,'000'),(3 >=0,'000');
ALTER TABLE t15 ADD COLUMN c;
CREATE INDEX t000 ON t15(c);
INSERT INTO t15(a,b)
VALUES(5,'000'),(15,'000'),(25,'000'),(35,'000');
UPDATE t15 SET c=printf("0%d",a) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
PRAGMA foreign_keys=ON;
CREATE TABLE t0000(a �NTEGER PRIMARY KEY, b);
CREATE UNIQUE INDEX i0000 ON t0000(a,b);REPLACE INTO t0000 VALUES(200,300);


sqltext:
CREATE TABLE t4(a TGXT);
INSERT INTO t4 VALUES('�');
INSERT INTO t4 VALUES('00t');
INSERT INTO t4 VALUES('4');
SELECT min(a), max(a) FROM t4;


sqltext:
CREATE TABLE t0(a N00000);
INSERT INTO t0 VALUES('-9223372036814775808');
SELECT a, typeof(a) FROM t0;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0r0ORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2BE


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY m OR round(M,3);


sqltext:
CREATE TABLE t2(x,y);
INSERT INTO t2 VALUES(1,2);
INSERT INTO t2 SELECT x+2, y+2 FROM t2;
INSERT INTO t2 SELECT x+4, y+4 FROM t2;
INSERT INTO t2 SELECT x+8, y+8 FROM t2;
INSERT INTO t2 SELECT x+1.,y+16 FROM t2;
INSERT INTO t2 SELECT x+32,y+32 FROM t2;
INSERT INTO t2 SELECT x+64, y+64 FROM t2;
SELECT count(*),sum(x), sum(y) FROM t2;


sqltext:
CREATE TABLE t0(a, CHECK ( sqlite_source_id() IN ('000',  randomblob(1))));
INSERT INTO t0 VALUES('000');


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '.0�';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
PRAGMA foreign_keys=CURRENT_TIMETABLE p(i PRIMARY KEY);
CREATE TABLE c(j REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
CREATE TABLE t0(a, b);
SELECT  "a","b""""a","ba","b",a F,"b""a","ba","b",a FROM (SELECT count(*)a FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t15(a INTEGER PR,MARY KEY, b);
INSERT INTO t15(a,b)VALUES(10,'0'),(20,'000'),(30,'000');
ALTER TABLE t15 ADD COLUMN c;
CREATE INDEX t000 ON t15(c);
INSERT INTO t15(a,b)
VALUES(5,'000'),(15,'000');(25a;


sqltext:
CREATE TABLE ""( a,bNIQUE, x CHAR(100));
CREATE TABLE t2(x);
INSERT INTO ""("") VALUES(1);REX INTO tLUES(2);
SELECT * FROM "", t2;


sqltext:
CREATE TABLE t2(a INT, b TEXT, c BLOB, d REAL);EXPLAIN
CREATE INDEX i0 ON t2(a ASC, b DESC, c ASC);
CREATE INDEX i4 ON t2(b DESC, a ASC, d DESC);
INSERT INTO t2 VALUES(1,'o00',x'00',1.0);
INSERT INTO t2 VALUES(2,'two',x'32',2);
INSERT INTO t2 VALUES(3,'0',x'00',3);
INSERT INTO t2 VALUES(4,'u',x'00000000',4);
INSERT INTO t2 VALUES(5,'f000',x'0000000000',5.0);
INSERT INTO t2 VALUES(6,'x',x'00',6);
INSERT INTO t2 VALUES(2,'two',x'3200',2.1);
INSERT INTO t2 VALUES(2,'w',x'00',2.0);
INSERT INTO t2 VALUES(2,NULL,NULL,3);
SELECT count(*) FROM t2;


sqltext:
BEGIN EXCLUSIVE;
CREATE TEMP TABLE temp_t000e(t);
INSERT INTO temp_t000e VALUES('00000');
PRAGMA temp_store = 1;


sqltext:
CREATE TABLE t14(a,b,c);
INSERT INTO t14 VALUES(1,2,3)INTERSECT
SELECT * FROM t14 INTERSECT VALUES(3,2,1),(2,3,1),(1,2,3),(2,1,3);


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0           000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1( a,ba,b load_extension(1,1),y);
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.� = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);


sqltext:
PRAGMA page_size= 512;
PRAGMA auto_vacuum = incremental;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT INTO t1 VALUES( randomblob(2 * (53374)) );
INSERT INTO t1 VALUES( randomblob(110 * (512-4)) );
INSERT INTO t1 VALUES(randomblob(3 * (5-4)) );
DELETE FROM t1 WHERE rowid= 3;
PRAGMA incremental_vacuum = 2;
DELETE FROM t1 WHERE rowid = 1;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2BEGIN SELECT 1; END;
DROP TRIGGER t2r6;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT-NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX mE00a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (VSSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELECT a, unicode(?) b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2;


sqltext:
PRAGMA auto_vacuum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t1(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);
DROP TABLE t3;
PRAGMA integrity_check;
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(1,1,1) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 2001-01-0110;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg( zeroblob(1)));


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a DEFAULT nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT a FROM t0t0006;


sqltext:
SELECT NULL "a","b" UNION SELECT "b"EXCEPT SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY x;


sqltext:
PRAGMA foreign_keys= ON;
CREATE TABLE p(i PRIMARY KEY);
CREATE TABLE c(DEFERREDj REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');
INSERT INTO t0000(b) VALUES('0000000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');
INSERT INTO t0000(b) VALUES('00');
END+
INSERT INTO t0000(b) VALUES('0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(?400,2),($400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(va0u01)
FROM t1
GROUP BY i01;


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('0');
PRAGMA full_column_names=on;
SELECT rowid, * FROM t0;VACUUM


sqltext:
PRAGMA foreign_keys=ON;
CREATE TABLE t0000(a INTEGER PRIMARY KEY, b);
CREATE UNIQUE INDEX i0000 ON t0000(a,b);REPLACE INTO t0000 VALUES(200,300);


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('stat0','s0'),( NOT( 1=11),'000'),('0r000','m0r00r0');
SELECT a, b, '0' FROM t000 WHERE a=='stat0' OR b='m0r00r0' ORDER BY +a;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y)OR avg(y));


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('+2   avg(1)aysnow')));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;


sqltext:
CREATE TABLE t1(x COLLA6E NOCASE PRIMARY KEY);
CREATE TRIGGER t00 AFTER DELETE ON t1
WHEN EXISTS ( SELECT 1 FROM t0 WHERE o00.x0= y )
BEGIN
INSERT INTO t0 VALUES(o00.x);
END;
CREATE TABLE t0(y REFERENC_S t0);
INSERT INTO t1 VALUES('0');
INSERT INTO t1 VALUES('B');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');VACUUM


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','0�',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b -1)OR a=oid OR trim(1,B)


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT rtrim(?,1) idx, stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(220015012001-01-01-01,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(2001-01-0150)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 


sqltext:
CREATE TABLE De00Ta0le (x INT0000, Tex00e0 TEXT, D000 Real);
CREATE INDEX D00000000000 ON De00Ta0le (Tex00e0);
INSERT INTO De00Ta0le VALUES(9,8,7);
INSERT INTO De00Ta0le VALUES(1,2,3);
CREATE VIEW De00V0e0 AS SELECT * FROM De00Ta0le GROUP BY-Tex00e0;
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 GROUP BY 1;


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(� UNIQUE, b);
CREATE TABLE t2(c, d REFERENCES t1(a));REPLACE INTO t1 VALUES(1,2);
INSES(2, 1);


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(42001-01-01,4);
SELECT a, x FROM t1, t2 ORDER BY 1, 2;


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x�PRIMARY KEY);
PRAGMA wal_checkpoint;
INSERT INTO t1 VALUES(randomblob(800));
BEGIN;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   8 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'00000000');
INSERT INTO t1(oid,a,x)VALUES(900,2,'0f00000000000000');
INSERT INTO t1(oid,a,x)VALUES(9223372036854775808,3,'0f00INSERT INTO t1(o00f');
INSERT INTO t1(oid,a,x)VA0f00000000');
INSERT INTO t1(oid,a,x)VALUES(0400000,12,'00000000000f000f');
INSERT INTO t1(oid,a,x)VALUES(40000000000,13,'00000f000000000f');
INSERT INTO t1(oid,a,x)VALUES(67000,14,'00000000000f00f0');
INSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000f00ff');
INSERT INTO t1(oid,a,x)VALUES(304,16,'0000000000004000');
INSERT INTO t1(oid,a,x)VALUES(7000000000000,17,'00000f00000000f0');
INSERT INTO t1(oid,a,x)VALUES(80000,18,'00000000000f0f00');
INSERT INTO t1(oid,a,x)VALUES(100000000000,19,'0000010000000000');
INSERT INTO t1(oid,a,x)VALUES(0040000000,20,'00000000000f0f0f');
INSERT INTO t1(oid,a,x)VALUES(-30,21,'000f000000000000');
INSERT INTO t1(oid,a,x)VALUES(34359738368,22,'0000000800000000');
INSERT INTO t1(oid,a,x)VALUES(30000,23,'0000000000000f0f');
INSERT INTO t1(oid,a,x)VALUES(8388608,24,'0000000000800000');
INSERT INTO t1(oid,a,x)VALUES(10000000000000,25,'00000f00000000ff');
INSERT INTO t1(oid,a,x)VALUES(20000000000000,26,'0001000000000000');
INSERT INTO t1(oid,a,x)VALUES(3000000000000000,27,'00000f0000000f00');
INSERT INTO t1(oid,a,x) VALUES(72057594037927936,28,'0100000000000000');
INSERT INTO t1(oid,a,x) VALUES(-6,29,'00000f0000000f0f');
INSERT INTO t1(oid,a,x) VALUES(205,30,'00000000000000f0');
INSERT INTO t1(oid,a,x) VALUES(4,31,'0000000000000004');
INSERT INTO t1(oid,a,x) VALUES(-68,32,'00000f0000008000');
INSERT INTO t1(oid,a,x) VALUES(-2,33,'00000f0000000ff0');
INSERT INTO t1(oid,a,x) VALUES(10000000000008,34,'0000800000000000');
INSERT INTO t1(oid,a,x) VALUES(50000000000,35,'0000008000000000');
INSERT INTO t1(oid,a,x) VALUES(4000000000,36,'0000000100000000');
INSERT INTO t1(oid,a,x) VALUES(-60,37,'00000f0000800000');
INSERT INTO t1(oid,a,x) VALUES(-1,38,'00000f0f');
INSERT INTO t1(oid,a,x) VALUES(3000000000,39,'00000000000f0ff0');
INSERT INTO t1(oid,a,x) VALUES(8400000,40,'0000000010000000');
INSERT INTO t1(oid,a,x) VALUES(2,41,'0000000000000002');
INSERT INTO t1(oid,a,x) VALUES(90000,42,'0000000000200000');
INSERT INTO t1(oid,a,x) VALUES(50000000,43,'000200000000');
INSERT INTO t1(oid,a,x) VALUES(-7,44,'000f800000000000');
INSERT INTO t1(oid,a,x) VALUES(060000000,45,'0080000000000000');
INSERT INTO t1(oid,a,x) VALUES(5000000000,46,'0000000000000fff');
INSERT INTO t1(oid,a,x) VALUES(-20,47,'00000f000000f000');
INSERT INTO t1(oid,a,x) VALUES(60000,48,'00000000000000ff');
INSERT INTO t1(oid,a,x) VALUES(128,49,'0000000000000080');
INSERT INTO t1(oid,a,x) VALUES(32768,50,'0000000000008000');
INSERT INTO t1(oid,a,x) VALUES(2147483648,51,'0000000080000000');
INSERT INTO t1(oid,a,x) VALUES(-3,52,'00000f00000000fd');
INSERT INTO t1(oid,a,x) VALUES(-28,53,'00000f0000000f80');
INSERT INTO t1(oid,a,x) VALUES(-29,54,'00000f0000000f70');
INSERT INTO t1(oid,a,x) VALUES(-9223372036854775808,55,'8000000000000000');
INSERT INTO t1(oid,a,x) VALUES(400000000000,56,'0000040000000000');
INSERT INTO t1(oid,a,x) VALUES(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VALUES(00800,58,'00000f000000f00f');
INSERT INTO t1(oid,a,x) VALUES(0,59,'0000000000000000');
INSERT INTO t1(oid,a,x) VALUES(1,60,'0000000000000001');
INSERT INTO t1(oid,a,x) VALUES(206,61,'0000000000000100');
INSERT INTO t1(oid,a,x) VALUES(60006,62,'0000000000010000');
INSERT INTO t1(oid,a,x) VALUES(-5000000000,63,'00000f8000000000');
INSERT INTO t1(oid,a,x) VALUES(8,64,'0f80000000000000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t0


sqltext:
CREATE TABLE t15(a INTEGER PRIMARY KEY, b);
INSERT INTO t15(a,b)VALUES(10,'0'),(20,'000'),(30,'000');
ALTER TABLE t15 ADD COLUMN c;
CREATE INDEX t000 ON t15(c);
INSERT INTO t15(a,b)
VALUES(5,'000'),(15,'000'),(25,'000'),(35,'000');
UPDATE t15 SET c=printf("0%d",a) WHERE c IS NULL;
SELECT round(1,1) a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1(a) VALUES('000000000');
INSERT INTO t1(a)VALUES(10);
INSERT INTO t1(a) VALUES(NULL);
INSERT INTO t1(a) VALUES(22.0);
INSERT INTO t1(a) VALUES(x'00000A');
CREATE INDEX i0 ON t1(a, b, c);
ANALYZE;
SELECT o00(se) FROM s000;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT total(1), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


sqltext:
CREATE TABLE t4(a,b,c,d int,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE e=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 30;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(990));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(4);
ROLLBACK;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(.400,2),(.400.1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(va0u01)
FROM t1
GROUP BY i01;


sqltext:
CREATE TEMP TABLE t0001(a,b,c);
SELECT * FROM sqlite_temp_master WHERE sqlite_source_id()-sql GLOB '*[-000';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE likely(q);
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT * from y;


sqltext:
CREATE TEMP TABLE t0(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
INSERT INTO t0 VALUES(null,'00');
INSERT INTO t0 VALUES(null,'00');
DELETE FROM t0;
INSERT INTO t0 VALUES(null,'000');
SELECT * FROM t0;


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x,a,b);
INSERT INTO t12b(x,rowid,x,x,x,x,x) SELECT * FROM t12a;
SELECT rowid, x FROM t12b;


sqltext:
CREATE TABLE x(i0 integer primary key, a TEXT NULL);
INSERT INTO x (a) VALUES ('00');
CREATE TABLE tempx(i0 integer primary key, a TEXT NULL);
INSERT INTO tempx (a) VALUES ('0');
CREATE VIEW t01 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx ON tx.i0=x.i0;
CREATE VIEW t010 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx on tx.i0=x.i0;
CREATE VIEW t02 AS SELECT * FROM t01UNION SELECT * FROM t010;
SELECT * FROM t02;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,b);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b= typeof(1)in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('























 

















  ; ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELEC F


sqltext:
CREATE TABLE t0000(a �NTEGER PRIMARY KEY ,UTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) SELECT('000000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATEINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 0...............................';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00�UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%q0%s', -1,c) FROM t1 ORDER BY rowid;


sqltext:
PRAGMA auto_vacuum = increment��;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(5000),@zeroblob(5000));
DELETE FROM t1;
PRAGMA incremental_vacuum;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT-'90𱰫�ULL';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t0000( a,ba INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');
INSERT INTO t0000(b) VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT rtrim(1,1)/x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE x0(a CHECK( a| 1=1|b ), b);
CREATE TABLE t0(a, b, CHECK( a||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00y0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 I m00000NTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, commE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16, length(1)b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t13(a PRIMARY KEY CHECK(a!=2)) WITHOUT rowid;VACUUM;
REPLACE INTO t13 VALUES(1);VACUUM


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
 SELECT tabC.a, txyZ.x, datetime(1,1,1)x, *
FROM tabc, txyz, tb0th GROUP BY 1 LIMIT 1;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000�AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | sqlite_compileoption_used(1)| '0000' || new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT-x+1 FROM i LIMIT 2001-01-015)
SELECT group_concat(1,1) x FROM i;


sqltext:
CREATE TABLE t1(a, b);
CREATE TABLE t0(a, b);
PRAGMA writable_schema=01;
UPDATE sqlite_master SET rootpage=5 WHERE tbl_name = 't1';
PRAGMA writable_schema=00;
ALTER TABLE t1 RENAME TO x0;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (907,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y) > avg( @1y));


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(1)tSt00n0 FROM TempT000e LIMIT 9;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t0(aATE TABY KEY, b REFERENCE��������S t0);
CREATE TABLE t2(a PRIM RY KEY,  c REFEt0);VACUUM;
CREATE TABLE t3(a REFERE6CES t0, b REFERENCES t2, c REFERENCES t0);VACUUM


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(c, b,c,d,e);
000000


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(1,1,?) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT-NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX sqlit_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX sqlite000000000000000 ON sub0ects(sub0ect);
CREATE INDEX sqlite0_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( length(1)),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,_RIGHT)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(10),(1,10,100);
NDEX t1a ON tER BY c;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('0 





















avg(1)es')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1, -11,'����');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,B) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
PRAGMA �ing=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','�����������������e0',5);
INSERT INTO t1 VALUES(3,'000','0��00',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT CURRENT_TIMESTAMP x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b AND'0000' || new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 `a`RE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
DELETE FROM t0 WHERE rowid>200;ANALYZE;ANALYZE


sqltext:
CREATE TABLE t0(x INTEGER PRIMARY KEY, y);
CREATE TABLE t3(a, b);
CREATE TRIGGER a0000000 AFTER INSERT ON t0 BEGIN
INSERT INTO t3 VALUES(new.x, new.y);
END;EXPLAIN
INSERT INTO t0 VALUES(5000000000, 0);
SELECT last_insert_rowid();


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a,��);
CREATE INDEX i ON t1(a);
PRAGMA auto_vacuum=1;
CREATINDEXi0 ON t0(a);
CREATE TABLOBt3(a);
CREATE INDEX i3 ONub0ects
CREATE MNDEX x ON t1(b);
DROP TABLEintegrity_check;
DROTABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
CREATE TABLE x(i0 integer primar� key, a TEXT NULL);
INSERT INTO x (a) VALUES ('00');
CREATE TABLE tempx(i0 integer primary key, a TEXT NULL);
INSERT INTO tempx (a) VALUES ('0');
CREATE VIEW t01 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx ON tx.i0=x.i0;
CREATE VIEW t010 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx on tx.i0=xi0;
;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 1*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2/a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT length(1)TE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
CREATE TABLE t1(a unique not null, b unique not null);
INSERT INTO t1 VALUES('0',1000000000000000000);
INSERT INTO t1 VALUES('b',1000000000020000000);
INSERT INTO t1 VALUES('c',1000000000100000000);
SELECT * FROM t1;


sqltext:
CREATE TABLE De00Ta0le (x INT0000, Tex00e0 TEXT, D000 Real);
CREATE INDEX D00000000000 ON De00Ta0le (Tex00e0);
INSERT INTO De00Ta0le VALUES(9,8,7);
INSERT INTO De00Ta0le VALUES(1,2,3);
CREATE VIEW De00V0e0 AS SELECT * FROM De00Ta0le ORDER BY Tex00e0;
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 GROUP BY 1;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%n0%n',a,b,c) FROM t1 ORDER BY 00001;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(1)tSt00n0 FROM TempT000e LIMIT 2001-01-011;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( round(1,2001-01-011)),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT * FROM t0 WHERE@a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) ;
PRAGMA temp.cache_size = 10;
FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHER�


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| total_changes()| changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),( hex(2001-01-011),'000'),( hex(1),'m00');


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a, x FROM t1, t2 ORDER BY 1, 2;REINDEX


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(�QUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES( total_changes()|| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE test(c0l0 �EXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2 ON t0.c0l0=-t2.c0l0
WHERE +t2.c0l0 IS NULL;


sqltext:
CREATE TABLE t1(a,b,x);
CREATE TABLE t0(c,d,y);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t0d ON t0(d);
ANALYZE sqlite_master;
INSERT INTO sqlite_stat1 VALUES('t1','t1b','10000 M00');
INSERT INTO sqlite_stat1 VALUES('t0','t4d','10000 500');
ANALYZE sqlite_master;
EXPoAKN QUERY PLAN SELECT * FROM t1, t0 WHERE d=b;


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x�PRIMARY KEY);
PRAGMA wal_checkpoint;
INSERT INTO t1 VALUES(randomblob(800));EXPLAIN
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
COMMIT;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b= quote(1) in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;
INSERT INTO t1 VALUES(randomblob(800));EXPLAIN
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   8 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT-randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(randomblob(100));
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT-randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
CREATE INDEX i0 ON t1(x);


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a load_extension(1,1));
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
PRAGMA cache_size = 5;
CREATE TABLE t11(a, b);
INSERT INTO t11 VALUES(randomblob(5000),NULL);
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(NOT [a]), NULL FROM t11; --0
UPDATE t11 SET b0= c0000(a);


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);EXPLAIN
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
CREATE TEMP TABLE t0(a PRIMARY KEY, b� c);
CREATE INDEX t000000 ON t0(c COLLATE BINARY);ATE INDEX t000002 ON t0(b COLLATE NOCASE);


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INTEGER PRIMARY KEY, q, r);
CREATE TABLE t002(x INTEGER�PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000 t001, t002 WHERE t002.z GLOB '0000';


sqltext:
CREATE TABLE t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, d,e DESC, b, c, a DESC;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATEINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql= ' "a","b"EATE�TABLE 00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| abs(1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| zeroblob(1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b, b,c,d,a,b,c,d,a,b,c)) ,e);
000000


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf( time(1,1,1),c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x sqlite_compileoption_get(1));
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| sqlite_compileoption_used(1)| '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg( -1)
FROM t34  b
GROUP BY x
HAVING avg(a.y) > avg(y));


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(a UNIQUE,d REFERENCES �1(a)UNIQUE);REPLACE INTO t1 VALUES(1,2);
PRAGMA foreign_keys = OFF;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('0  @1avg(1)es')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('0z');
INSERT INTO t0 VALUES('0y');
INSERT INTO t0 VALUES('c0');
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m;
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m COLLATE binary;
SELECT '0', substr(m,M)  FROM t0 ORDER BY lower(m);


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( 0e0, -1 /* */)
FROM t1
GROUP BY i01;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,?) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (b=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND ?=3) AND y IS NULL;
CREATE TEMP T[BLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 5 FROM x9 WH^RE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 L
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT a FROM t0 WHERE b OR (SELECT b FROM t0 GROUP BY b);


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIMARY KEY, b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid& b = '000000000000000000000000000000000000';
COMMIT;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(c,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(b, d);
INSERT INTO t0 VALUES('000','000r000','00a','000000');
INSERT INTO t0 VALUES('0000000','j00000','0000000','0000000');
INSERT INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT DISTINCT*, '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('a', 1, 1);
INSERT INTO t1 VALUES('0', 6, 6);
INSERT INTO t1 VALUES('c', 5, 5);
INSERT INTO t1 VALUES('0', 4, 4);
INSERT INTO t1 VALUES('0', 5, 5);
INSERT INTO t1 VALUES('c', 6, 6);
INSERT INTO t1 VALUES('b', 4, 4);
INSERT INTO t1 VALUES('c', 7, 7);
INSERT INTO t1 VALUES('0', 2, 2);
INSERT INTO t1 VALUES('0', 3, 3);
INSERT INTO t1 VALUES('a', 3, 3);
INSERT INTO t1 VALUES('b', 5, 5);
INSERT INTO t1 VALUES('c', 4, 4);
INSERT INTO t1 VALUES('c', 3, 3);
INSERT INTO t1 VALUES('a', 2, 2);
SELECT * FROM t1 GROUP BY a, a,@id


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT trim(1,1),a FROM t0t0006;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a || +4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,62001-01-01,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1,X'');
INSERT INTO t1 VALUES(90, 1, 'o00��������������������������������00');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c, -14) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||sr(c,4) FROM t1 WHERE c GLOB ���INSE


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR likely(1)ER BY +x;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COMLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('AB);
INSERT INTO t0t0006 VAX');
SELECT DISTINCT a FROM t0t0006;


sqltext:
PRAGMA page_size= 512;
PRAGMA auto_vacuum = incremental;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( randomblob(1 * (57754)) );
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT INTO t1 VALUES( randomblob(2 * (500-4)) );
INSERT INTO t1 VALUES( randomblob(110 * (512-4)) );
INSERT INTO t1 VALUES(randomblob(3 * (5-4)) );
DELETE FROM t1 WHERE rowid= 3;
PRAGMA incremental_vacuum = 2;
DELETE FROM t1 WHERE rowid = 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000,INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT last_insert_rowid() TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,idx,stat)VALUES('t1','t1a','12000'),('t1','t1b','10000');
ANALYZE sqlite_master;
SELECT*, nullif(1,1)'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY c;


sqltext:
ANALYZE;
DROP TABLE IF EXISTS sqlite_stat1;
DROP TABLE IF EXISTS s2;
DROP TABLE IF EXISTS l0;
DROP TABLE IF EXISTS s4;
SELECT name FROM sqlite_master WHERE name GLOB ' [a]';


sqltext:
CREATE TABLE t0(a PRIMARY KEY, b REFERENCLOBt0);
CREATE TABLE t2(a PRIMARY KEY,  c REFEt0);VACUUM;
CREATE TABLE t3(a REFERENCES t0, b REFERENCES t2, c REFERENCES t0);VACUUM


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = +0;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randombloS($00), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
DELETE FROM t0W


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_modT = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1080), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT IXTO t1 SELECT randomblob(1000), r00) FROM t1;
DELETE FROM t1 WHERE rowid%2;


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20)�
SELECT SQLITE_RENAME_TABLE('f00', '000');


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(a PRIMARY KEY, b);
CREATE TABLE t2(c REFERENCES t1 DEFERRABLE INITIALLY DEFERRED, d);
INSERT INTO t1 VALUES(9,2);
INSERT INTO t1 VALUES(1,3);


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES( random()-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
CREATE TABLE t00b AS SELECT "a","b"COLLALE�t00b ,"b"COLLALE AS SELECT "a","b"COLTE''LIKE'';
SELECT * FROM t00b;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,b,c,d,e,c,d,e,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16, total_changes()b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');EXPLAIN
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TEMP TABLE sqlite_version()MARY KEY AUTOINCREMENT, b);
INSERT INTO t0 VALUES(null,'00');
INSERT INTO t0 VALUES(null,'00')�
DE0;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERENCES �1 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
INSERT INTO t0 VALUES(13);
INSERT INTO t3 VALUES(13);


sqltext:
CREATE TABLE "'000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n00b00" FROM (SELECT "000000", "n00b00" FROM "0000" ORDER BY "000000", "n00b00" LIMIT 1) AS "0000";


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN ( total_changes(),1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,b,c /* */));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
CREATE TABLE t1(x INTEGER�PRIMARY KEY, y, z);
CREATE TABLE t2(a, b);
CREATE VIEW a002 AS SELECT a, sum(b) AS m FROM t2 GROUP BY a,
 a, sum(m) AS;


sqltext:
PRAGMA foreign_keys =�ON;
CREATE TABLE t1(a UNIQUE, b);
;
PRAGMA foreign_keys = OFF;
CREATE TABLE t2(c, d REFERENCES t1(a));REPLACE INTO  t2 VALUES(2, 1);
BEGIN;
PRAGMA foreign_keys = OFF;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b,c,a, b,c,d,e);
VACUUM


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0
LEFT JOIN t102 
JOIN t102 AS  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2 ON(t2.i0= t0.i0 AND(t0.i0<>500 AND t0.i0=t1.i0));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'00��������������00');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o00�');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1,X'');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c, -14) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||sr(c,4) FROM t1 WHERE c GLOB ���INSE


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, date(1,1,1) b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=2 OR ?13;
SELECT?5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x c REAL DEFAULT '9e99');
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '90�';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPd t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x-16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t0(a N00000);
INSERT INTO t0 VALUES('99223372036854775808');
SELECT a, typeof(a) FROM t0;


sqltext:
CREATE TABLE t0(x);
CREATE UNIQUE INDEX t00 ON t0(x);
BEGIN;
INSERT OR ROLLBACK INTO t0 VALUES(1);
INSERT OR ROLLBACK INTO t0 VALUES(1);


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t���ASC6(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t VALUES('ab0');


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t0000. AFTER UPDATE ON TempT000e BEGIN


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT rtrim(1,1)&x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);
INSERT INTO t0a VALUES('on0', 1);
INSERT INTO t0a VALUES('on0', 2);
INSERT INTO t0a VALUES('t00', 3);
INSERT INTO t0a VALUES('00', NULL);
INSERT INTO t0b(rowid,x)VALUES(1,1);
INSERT INTO t0b(rowid,x)VALUES(2,200);
INSERT INTO t0b(rowid,x) VALUES(3,300);
SELECT a, count(b) FROM t0a, t0b WHERE@b<t0b.rowid GROUP BY a ORDER BY a;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4aNl','600000 16 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);REINDEX TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(  "a","b""a","b" /* */)
FROM t1
GROUP BY 002;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%q0%s',?,b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT t0.a FROM t0;
CREATE TRIGGER t0001 INSTEAD OF DELETE ON v0 BEGIN
SELECT 0;
END;EXPLAIN
DELETE FROM v0 WHERE a= 1;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 te|t(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
SELECT  1000000%0000000101000000%008000000600600001000000%008000060000000101000000%0080000600000000%008000060000;


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(200) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;      /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(900);


sqltext:
CREATE TABLE De00Ta0le (x INT0000, Tex00e0 TEXT, D000 Real);
CREATE INDEX D00000000000 ON De00Ta0le (Tex00e0);
INSERT INTO De00Ta0le VALUES(9,8,7);
INSERT INTO De00Ta0le VALUES(1,2,3);
CREATE VIEW De00V0e0 AS SELECT * FROM De00Ta0le ORDER BY Tex00e0;
SELECT* FROM De00Ta0le UNION ALL SELECT * FROM De00V0e0 ORDER BY D;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2001-01-012*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 GROUP BY b, c, d,e DESC,C;


sqltext:
CREATE TABLE t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=2 AND c=3 ORDER BY d DESC, c DESC, b, c, a DESC;


sqltext:
CREATE TEMP TABLE ob0list(type, name, tbl_name);
INSERT INTO ob0list SELECT type, name, tbl_name FROM sqlite_master;
INSERT INTO ob0list
SELECT type,name, tbl_name FROM sqlite_temp_master
WHERE NAME!='ob0list';
SELECT typename, tbl_name FROM ob0list
ORDER BY tbl_name, type desc, name;


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT x+1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE t000(a INTEGIR PRIMARY KEY, b c);
CREATE TABLE t001(p INTEGER PRIMARY KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002 WHERE t002.z GLOB '0000';


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));EXPLAIN
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));ANALYZETABLE I0(O000 tex text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I00000000000ext not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM ((t0 JOIN t2 ON t0.a<t2.a) AS x JOIN t2x ON x.b<t2x.b) as00;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER` t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000'AND substr(a,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE table t0(a,b);
INSERT INTO t0 VALUES('0000','00');
INSERT INTO t0 VALUES('00000','xy0');
CREATE TABLE t2(x,y);
INSERT INTO t2 SELECT strftime(1.1,1,1) a, CASE b WHEN 'xy0' THEN null ELSE b END FROM t0;
SELECT x, y FROM t2 ORDER BY x;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%2;VACUUM


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('000');
 VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE 0 IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERTI


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES( `a`, 3);
I


sqltext:
CREATE TABLE t10(x INTEGER PRIMARY KEY, y INT, z CHAR(100));
CREATE INDEX t000 ON t10(y);
EXPLAIN QUERY PLAN
SELECT a.x, b.x
FROM t10 AS a JOIN t10 AS b ON a.y<b.x
WHERE (b.y>$ab0 OR b.y<$ab0);


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN 1 THEN x'0000000000'WHEN 2 THEN  round(1,1)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);
INSERT INTO t0a VALUES('on0', 1);
INSERT INTO t0a VALUES('on0', 2);
INSERT INTO t0a VALUES('t00', 3);
INSERT INTO t0a VALUES('00', NULL);
INSERT INTO t0b(rowid,x)VALUES(1,1);
INSERT INTO t0b(rowid,x)VALUES(2,200);
INSERT INTO t0b(rowid,x) VALUES(3,300);
SELECT a, count(b) FROM t0a, t0b WHERE@b=t0b.rowid GROUP BY "a","�" BY a;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(3);
INSERT INTO t0(rowid,x) SELECT nullif(x*2+10,14), x+100 FROM t0;
SELECT rowid,CURRENT_TIME x FROM t0;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIM "a","b" b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, b = '00..';
COMMIT;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x AND+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRa)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='ABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO sqlit%_


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2 ON(SELECT t0.i0 OR (t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| instr(1,1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t00a(a,b);
INSERT INTO t00a VALUES(0,0);
CREATE TABLE t00b(n);
CREATE TRIGGER r00 AFTER INSERT ON t00b BEGIN
SELECT 0 FROM t00a WHERE 0>n0000 UNION ALL
SELECT 0 FROM t00a WHERE 0>new>x ORDER BY 0 LIMIT 0,
END;
INSERT INTO t00b VALUES(6);


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE UPDATE ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');
INSERT INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) SELECT('000000');REPLACE INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) SELECT('0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text�50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
WITH i(x) AS ( VALUES( 1=11) UNION ALL SELECT x+1 FROM i ORDER BY 1)
 VALUES( 1=11) UNION ALL SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);EXPLAIN
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);EXPLAIN
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);ANALYZE INDEX su00000 UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 1;;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT omblob(500), randombloG(600) FROM tt
IN600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblobRT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
CREATE TABLE x1(a);
CREATE TABLE x2(b);
INSERT INTO x2 VALUES(1), (1), (2);
INSERT INTO x2 VALUES(1), (2);
SELECT count(*) FROM x2 WHERE b IN (SELECT DISTINCT b FRO LIMIT 2);


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));REINDEX INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 10;
CREATE TABLE temp.tt(a, b);
VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randombsob(500), randomblob(600)  INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
CREATE TABLE test(c0l0 TEXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2 ON sqlite_version()
WHERE +t2.c0l0 IS NULL;


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(ASa UNIQUE, Ad REFERENCES t1(a)UNIQUE);REPLACE INTO t1 VALUES(1,2);
F;


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,"") WITHOUT SERT VALTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHBY+ a IN (oid) ORDER BY b;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON UPDATE SET DEFAULT	;
CREATE TABLE t3(y REFERENCES t1 ON UPDATE SET NULL);
INSERT INTO t1 VALUES(13);
INSERT INTO t0 VALUES(13);
INSERT INTO t3 VALUES(13);


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT000e LIMIT 2001-01-011;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labdls(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON la(mes_id,_id)


sqltext:
CREATE TABLE t1(a char(1),b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a-64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT a FROM t0 WHERE b IN (SELECT b FROM t0 ORDER BY-b);


sqltext:
PRAGMA cache_size =-10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(92001-01E0100) FROM t1;          /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(900);


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-'9�99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=c+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('0  blobavg(1)es')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF CURRENT_TIMESTAMPa ON t10 BEGIN
UPDATE t00 SET u0= u00000000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%n0%S',a,b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT x, y FROM t01
UNION ALL
SELECT x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT * FROM v0 WHERE x='0'ISNULL OR likely(1)


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(ASa UNIQUE,  d REFERENCES t1(ASa)UNIQUE);REPLACE INTO t1 VALUES(1,2);
F;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size =�10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(100), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(502001-01-010), randomblob(602001-01-010) FROM tt;
IN00), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y,DE "a","b" REFERENCES t1(x) ON DELETE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t0 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE TABLE x1(a);
CREATE TABLE x2(b);
INSERT INTO x1 VALUES(1), (1), (2);
INSERT INTO x2 VALUES(1), (2);
SELECT count(*) FROM x2 WHERE b IN (SELECT random() a FROM x1 LIMIT 2) -1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000,INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(1)tSt00n0 FROM TempT000e LIMIT 9;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, a00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t0(a,b int,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND c=? AND d=A AND e=A AND	e= -1


sqltext:
PRAGMA foreign_keys=ON;
CREATE TABLE t0000(a INTEGER PRIMARY KEY, b);
CREATE UNIQUE INDEX i0000 ON t0000(a,a);REINDEX INTO t0000 VALUES(200,300);


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), sqlite_compileoption_get(1)ELETE FROM t1 WHERE rowid%2.


sqltext:
CREATE TABLE t3(a EXINTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3( [a],e DESC, b,  e DESC, b, c,  d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY f DESC,d DESC, e DESC, b,  e DESC, b, c, a DESC;


sqltext:
CREATE TABLE t30a(x); INSERT INTO t30a VALUES(1),(2),(3);
CREATE TABLE t300(y); INSERT INTO t30A VALUES(90), (99);
SELECT max((SELECT zeroblob(1) t300)) FROM t30a;


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT sqlite_source_id() a, x FROM t1, t2 ORDER BY 1, 2;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2.1) AS00 FROM t0 GROUP BY m ORDER BY 2, 2;


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( round(0,3)),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(22000000101,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(2001-01-0150)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 


sqltext:
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT);
CREATE TABLE t2(a�INTEGER PRIMARY KEY, b�TEXT);
INSERT INTO t1 VALUES(1,'ab0');
INSERT INTO t1 VALUES(2,'000');
INSERT INTO t2 VALUES(1,'ab0');
INSERT INTO t2 VALUES(2,'000');
SELECT DISTINCT* FROM t1 NATURAL JOIN t2;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e������0',5);
INSERT INTO t1 VALUES(3,'000','0��00',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x ( "a","b"R PRIMARY KEY);
SELECT t0. *FROM ((t0 JOIN t2 ON t0.a=t2.a) AS x JOIN t2x ON x.b=t2x.b) as00;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELECT a, unicode( -11) b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a RIMARY KEY);
INSERT INTO t0t0006 VALUES(NOT'a�');
INSERT INTO t06 VAOUES('


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' ||OFubstr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND#60;


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t0006(a CXLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab���0');
INS*R


sqltext:
CREATE TABLE t0000(aCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
VALUES('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
CREATE TEMP TABLE t0001(a����������������������ӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*��000';


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX  'a''f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
CREATE TABLE t3(a TEXT, b REAL, c INT0000);EXPLAIN
INSERT INTO t3 VALUES(X'000000', '1.0', 4.5);
SELECT typeof(a), avg(1) a, typeof(b), b, typeof(c), c FROM t3;


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  (1)NOTNULL;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ON?(x=M


sqltext:
CREATE TABLE t0(x, a, b);
CREATE INDEX t0a ON t0(x, a COLLATE nocase);
CREATE INDEX t0b ON t0(x' b);


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( zeroblob(1) /* */)
FROM t1
GROUP BY i01;


sqltext:
CREATE TABLE t5(a TEXT PRIMARY KEY, b V00CHAR(50)) WITHOUT ROWID;
INSERT INTO t5 VALUES('00000','0000');EXPLAIN
SELECT count(*) FROM t5;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 20p0 60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE d=2;
SELECT i FROM t4 WHERE D=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SE8ECT 


sqltext:
CREATE TABLE test(c0l0 TEXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2
WHERE +t2.c0l0 IS  1=1;


sqltext:
PRAGMA auto_vacuum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);
DROP TABLE t3;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;
DROP TABLE t0;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime( /* */1) x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);
INSERT INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGN KEY(x,y) REFERENCES t0000(a,b));
INSERT INTO t0e02 VALUES(300,100,200);
UPDATE t0e01 set b = 200 where a = 1.0;
SELECT* FROM t0e01, t0e02;


sqltext:
SELECT *
FROM (SELECT name+1 AS one FROM sqlite_master LOINCREMENT1)
WHERE one LIKE one LIKE  '000000' LIKE one;


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x a,b, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
 SELECT tabC.a, txyZ.x, tb0Th.a, round(1,?)
FROM tabc, txyz, tb0th GROUP BY 1 LIMIT 1;


sqltext:
CREATE TABLE x1(a);
CREATE TABLE x2(b);
INSERT INTO x1 VALUES(1), (1), (2);
INSERT INTO x2 VALUES(1), (2);
SELECT count(*) FROM x2 WHERE b IN (SELECT random() a FROM x1 LIMIT 2)ISNULL;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2/a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2* sqlite_compileoption_get(1)a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');EXPLAIN
INSERT INTO t1 SELECT a+1,2,'000'AND substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE TABLE t4( [a]a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE e=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('a', 1, 1);
INSERT INTO t1 VALUES('0', 6, 6);
INSERT INTO t1 VALUES('c', 5, 5);
INSERT INTO t1 VALUES('0', 4, 4);
INSERT INTO t1 VALUES('0', 5, 5);
INSERT INTO t1 VALUES('c', 6, 6);
INSERT INTO t1 VALUES('b', 4, 4);
INSERT INTO t1 VALUES('c', 7, 7);
INSERT INTO t1 VALUES('0', 2, 2);
INSERT INTO t1 VALUES('0', 3, 3);
INSERT INTO t1 VALUES('a', 3, 3);
INSERT INTO t1 VALUES('b', 5, 5);
INSERT INTO t1 VALUES('c', 4, 4);
INSERT INTO t1 VALUES('c', 3, 3);
INSERT INTO t1 VALUES('a', 2, 2);
SELECT * FROM t1 GROUP BY b, b,oid


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(ASa UNIQUE, b);
CREATE TABLE t2(c, d REFERENCES t1(ASCa));REPLACE INTO t1 VALUES(1,2);
INOFF;


sqltext:
CREATE VIEW x1 AS SELECT 100 AS '', 200 AS '', 300 AS '';
SELECT * FROM x1;$


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));REINDEX TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t4(a,b,c int,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40010');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
PRAGMA vum=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);
DROP TABLE t3;
PRAGMA integrity_check;
-------BLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(2000), zeroblob(5000));
DELETE FROM t1;
PRAGMA incremental_vacuum;


sqltext:
CREATE TABLE t44(a INT0000, b INT0000);
INSERT INTO t44 VALUES(1,2);
INSERT INTO t44 VALUES(3,4);
SELECT*
FROM t44 x
LEFT JOIN(SELECT a AS c, b AS d FROM t44) A000 ON a= upper(?)=4 OR d IS NULL;


sqltext:
CREATE TABLE t3(a TEXT, b REAL, c INT0000);
INSERT INTO t3 VALUES(X'000000', '1222222222222222222.03a00', 4.5);
SELECT typeof(a), avg(1) a, typeof(b), b, typeof(c), c FROM t3;


sqltext:
CREATE TABLE test(c0l0 TEXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2
WHERE +t2.c0l0 OR NULL;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT replace(A,1,1) a FROM t1 WHERE a<>0);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT a FROM t0 WHERE b IN (SELECT replace(1,1,1) b FROM t0 ORDER BY b);


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b='000'), t0 WHERE strftime(A,CURRENT_TIME);
IFSERT c='


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);
INSERT INTO t0a VALUES('on0', 1);
INSERT INTO t0a VALUES('on0', 2);
INSERT INTO t0a VALUES('t00', 3);
INSERT INTO t0a VALUES('00', NULL);
INSERT INTO t0b(rowid,x)VALUES(1,1);
INSERT INTO t0b(rowid,x)VALUES(2,200);
INSERT INTO t0b(rowid,x) VALUES(3,300);
SELECT zeroblob(1) a, count(b) FROM t0a, t0b WHERE b=t0b.rowid GROUP BY a ORDER BY a;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b= sqlite_source_id() WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
CREATE TABLE x(i0 integer prymary key, a TEXT NULL);
INSERT INTO x (a) VALUES ('00');
CREATE TABLE tempx(i0 integer primary key, a TEXT NULL);
INSERT INTO tempx (a) VALUES ('0');
CREATE VIEW t01 AS SELECT x.i0, tx.i0 FROM x JOIN x tx ON tx.i0=x.i0;
CREATE VIEW t010 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx on tx.i0=x.i0;
CREATE VIEW t02 AS SELECT * FROM t01 UNION SELECT * FROM t010;
SELECT * FROM t02;


sqltext:
CREATE TABLE t4(a TGXT);
INSERT INTO t4 VALUES('�');
INSERT INTO t4 VALUES('00t');
INSERT INTO t4 VALUES('04');
SELECT min(a), max(a -1) FROM t4;


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'000000000f000000');
INSERT INTO t1(oid,a,x)VALUES(900,2,'0f00000000000000');
INSERT INTO t1(oid,a,x)VALUES(922+372036854775800,3,'0f0000000000000f');
INSERT INTO t1(oid,a,x)VALUES(7,4,'000000000000000f');
INSERT INTO t1(oid,a,x)VALUES(3,5,'0000000000000003');
INSERT INTO t1(oid,a,x)VALUES(6000000,6,'0000000001000000');
INSERT INTO t1(oid,a,x)VALUES(90000000000,7,'0000030000000000');
INSERT INTO t1(oid,a,x)VALUES(300,8,'0000000000000f00');
INSERT INTO t1(oid,a,x)VALUES(6000005,9,'00000000000f0000');
INSERT INTO t1(oid,a,x)VALUES(200000000000,10,'00000f0000000000');
INSERT INTO t1(oid,a,x)VALUES(-8,11,'0000000f00000000');
INSERT INTO t1(oid,a,x)VALUES(0400000,12,'00000000000f000f');
INSERT INTO t1(oid,a,x)VALUES(40000000000,13,'00000f000000000f');
INSERT INTO t1(oid,a,x)VALUES(67000,14,'00000000000f00f0');
INSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000f00ff');
INSERT INTO t1(oid,a,x)VALUES(304,16,'0000000000004000');
INSERT INTO t1(oid,a,x)VALUES(7000000000000,17,'00000f00000000f0');
INSERT INTO t1(oid,a,x)VALUES(80000,18,'00000000000f0f00');
INSERT INTO t1(oid,a,x)VALUES(100000000000,19,'0000010000000000');
INSERT INTO t1(oid,a,x)VALUES(0040000000,20,'00000000000f0f0f');
INSERT INTO t1(oid,a,x)VALUES(-30,21,'000f000000000000');
INSERT INTO t1(oid,a,x)VALUES(34359738368,22,'0000000800000000');
INSERT INTO t1(oid,a,x)VALUES(30000,23,'0000000000000f0f');
INSERT INTO t1(oid,a,x)VALUES(8388608,24,'0000000000800000');
INSERT INTO t1(oid,a,x)VALUES(10000000000000,25,'00000f00000000ff');
INSERT INTO t1(oid,a,x)VALUES(20000000000000,26,'0001000000000000');
INSERT INTO t1(oid,a,x)VALUES(3000000000000000,27,'00000f0000000f00');
INSERT INTO t1(oid,a,x) VALUES(72057594037927936,28,'0100000000000000');
INSERT INTO t1(oid,a,x) VALUES(-6,29,'00000f0000000f0f');
INSERT INTO t1(oid,a,x) VALUES(205,30,'00000000000000f0');
INSERT INTO t1(oid,a,x) VALUES(4,31,'0000000000000004');
INSERT INTO t1(oid,a,x) VALUES(-68,32,'00000f0000008000');
INSERT INTO t1(oid,a,x) VALUES(-2,33,'00000f0000000ff0');
INSERT INTO t1(oid,a,x) VALUES(10000000000008,34,'00008000');
INSERT INTO t1(oid,a,x) VALUES(50000000000,35,'0000008000000000');
INSERT INTO t1(oid,a,x) VALUES(4000000000,36,'0000000100000000');
INSERT INTO t1(oid,a,x) VALUES(-60,37,'00000f0000800000');
INSERT INTO t1(oid,a,x) VALUES(-1,38,'00000f0f');
INSERT INTO t1(oid,a,x) VALUES(3000000000,39,'00000000000f0ff0');
INSERT INTO t1(oid,a,x) VALUES(8400000,40,'0000000010000000');
INSERT INTO t1(oid,a,x) VALUES(2,41,'0000000000000002');
INSERT INTO t1(oid,a,x) VALUES(90000,42,'0000000000200000');
INSERT INTO t1(oid,a,x) VALUES(50000000,43,'000200000000');
INSERT INTO t1(oid,a,x) VALUES(-7,44,'000f800000000000');
INSERT INTO t1(oid,a,x) VALUES(060000000,45,'0080000000000000');
INSERT INTO t1(oid,a,x) VALUES(5000000000,46,'0000000000000fff');
INSERT INTO t1(oid,a,x) VALUES(-20,47,'00000f000000f000');
INSERT INTO t1(oid,a,x) VALUES(60000,48,'00000000000000ff');
INSERT INTO t1(oid,a,x) VALUES(128,49,'0000000000000080');
INSERT INTO t1(oid,a,x) VALUES(32768,50,'0000000000008000');
INSERT INTO t1(oid,a,x) VALUES(2147483648,51,'0000000080000000');
INSERT INTO t1(oid,a,x) VALUES(-3,52,'00000f00000000fd');
INSERT INTO t1(oid,a,x) VALUES(-28,53,'00000f0000000f80');
INSERT INTO t1(oid,a,x) VALUES(-29,54,'00000f0000000f70');
INSERT INTO t1(oid,a,x) VALUES(-9223372036854775808,55,'8000000000000000');
INSERT INTO t1(oid,a,x) VALUES(400000000000,56,'0000040000000000');
INSERT INTO t1(oid,a,x) VALUES(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VALUES(00800,58,'00000f000000f00f');
INSERT INTO t1(oid,a,x) VALUES(0,59,'0000000000000000');
INSERT INTO t1(oid,a,x) VALUES(1,60,'0000000000000001');
INSERT INTO t1(oid,a,x) VALUES(206,61,'0000000000000100');
INSERT INTO t1(oid,a,x) VALUES(60006,62,'0000000000010000');
INSERT INTO t1(oid,a,x) VALUES(-5000000000,63,'00000f8000000000');
INSERT INTO t1(oid,a,x) VALUES(8,64,'0f800000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 ON t1(x);


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2)MATCH min(?,1)FROM t1
GROUP BY 	01;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''00',1);
INSERT INTO t1 VALUES(2,'00', 'a''e0',5);
INSERT INTO t1 VALUES(3,'000','00��0',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count(),
NULLIF( "a",'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,b);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(?,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000008 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (	SSUEID, OB0ECTID));
CREAt not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U0000000000000xt(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATE UNIQUE INDEX a.b ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, zeroblob(1) b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf( trim(1,1),b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE test(c0l0 TEXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2 ON t0.c0l0/ t2.c0l0
WHERE +t2.c0l0 IS NULL;


sqltext:
CREATE TABLE t0(a,b);
CREATE TABLE l00(x UNIQUE, y);
CREATE TRIGGER r0 AFTER INSERT ON t0 BEGIN
UPDATE l00 SET y=y+ ?10 WHERE@x=new.a;
INSERT OR IGNORE INTO l00 VALUES(new.a,00);
END;
INS


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY@m OR round(1,1);


sqltext:
PRAGMA journal_mode = WAL;
PRAGMA page_size = 1024;
BEGIN;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;           /* 4 */
COMMIT;
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 8 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 12 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 16 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 20 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 24 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 28 */
INSERT INTO t1 SELECT randomblob(900) FROM t1 LIMIT 4;   /* 32 */


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, group_concat(1,1) b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT  last_insert_rowid() t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(200);


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0 0000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%337s',a/b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t2(x,y);
INSERT INTO t2 VALUES(1,2);
INSERT INTO t2 SELECT x+2, y+2 FROM t2;
INSERT INTO t2 SELECT x+4, y+4 FROM t2;
INSERT INTO t2 SELECT x+8, y+8 FROM t2;
INSERT INTO t2 SELECT x+16,y+16 FROM t2;
INSERT INTO t2 SELECT x+32,y+32 FROM t2;
INSERT INTO t2 SELECT x-64, y+64 FROM t2;
SELECT count(*),sum(x), sum(y) FROM t2;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%h%' ESCAPE '0';


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,b);
INSERT INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGN KEY(x,y) REFERENCES t0000(a,b));
INSERT INTO t0e02 VALUES(300,100,200);
UPDATE t0e01 set b = 200 where a!= 100;
SELECT* FROM t0e01, t0e02;


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');EXPLAIN
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b<'000'), t0 WHERE c='abc';


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(a UNIQUE, b);
;
PRAGMA foreign_keys = OFF;
CREATE TABLE t2(c, d REFERENCES t1(a));REPLACE INTO  t2 VALUES(2, 1);VACUUM;
PRAGMA foreign_keys = OFF;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT typeof(1) *a FROM t0t0006;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1002001-01-oid), randomblob(1000) FROM t1;
I


sqltext:
CREATE TABLE c000a00001(a, b);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
CREATE VIEW c000a000v1 AS SELECT * FROM c000a00001
ORDER BY 1 COLLATE  a,b;
SELECT * FROM c000a000v1;


sqltext:
PRAGMA mmap_size = 0;
PRAGMA page_size = 1024;
PRAGMA cache_size = 2000;
CREATE TABLE t1(x);
CREATE TABLE t2(x);
CREATE TABLE t3(x);
CREATE INDEX i3 ON t3(x);
INSERT INTO t3 VALUES(randomblob(100));
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(?0 ) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t���ASC6(VIEWa COLLATE nocase PRIMARY KEY);
INSERT INTO t0t VALUES('ab0');


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16, last_insert_rowid()b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(b);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATE UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


sqltext:
CREATE TABLE t3(a TEXT, b REAL, c INT0000);
INSERT INTO t3 VALUES(X'000000', '1.03a00', 4.5);
SELECT typeof(a), a, typeof(b)< b, typeof(c), c FROM t3;


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT x, y FROM t01
UNION ALL
SELECT x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT * FROM v0 WHERE x='0' GROUP BY 2001-01-01"a"


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t��06(a C��LATE nocase PRIMARY KEY);
INSERT INTO t0t VALUES('ab0');


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INTC);
CREATE TABLE t002(x INTEGER PRIMARL KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002 WHERE t002.z GLOB '0000';


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%0;
PRAGMA incremental_vacuum(4);
ROLLBACK;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON DELETE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
INSERT INTO t0 VALUES(13);
INSERT INTO t3 VALUES(13);
INSERT INTO t0 VALUES(3);


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2(a, b, FOREIGN KEY(a,  a,bb) REFERENCES t1 ON UPDATE CASCADE);;


sqltext:
CREATE TABLE t0( a,ba,b,c,d,e, PRIe, PRIMARY KEY(a,E,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b, b);
008000


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN 1 THEN randomblob(2)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
CREATE TABLE t15(a INTEGER PRIMARY KEY, b);
INSERT INTO t15(a,b)VALUES(10,'0'),(20,'000'),(30,'000');
ALTER TABLE t15 ADD COLUMN c;
CREATE INDEX t000 ON t15(c);
INSERT INTO t15(a,a)
VALUES(5,'000'),(15,'000'),(25,'000'),(35,'000');
UPDATE t15 SET c=printf("0%d",a) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT last_insert_rowid() idx, stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1,X'0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,62001-01-01,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE TABLE t0(x,y DEFAULT 4.3, z DEFAULT x'00A0');
INSERT INTO t0 DEFAULT VALUES;
SELECT * FROM t0;


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;          /* 64 rows */
BEGIN;
UPDATE t1 SET x =-randomblob(900);


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,0);
CREATE VIEW v1 AS SELECT b FROM t1 WHERE a>0;
CREATE TABLE t0(p,q);
INSERT INTO t0 VALUES(0,0);
SELECT * FROM v1 WHERE EXISTS(SELECT strftime(1,1,1,1)=v1.b);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,b,c,d,b,c,b,c,d,e,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0( a,bx,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(990));
INSERT INTO t0 SELECT sqlite_source_id() x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(4);
ROLLBACK;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null�K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t000(a  "a"GER PRIMARY KEY, b, c);
CREATE TABLE t001(p INTEGER PRIMARW KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002 WHERE t002.z GLOB '0000';


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT rtrim(1,1)LIKE x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000s COLLATE NOCASE, commen, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT-NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(sub0ect, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su OU sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATENTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t0e03(a INTEGER PRIMARY KEY, b, UNIQUE(a,b)) WITHOUT rowid+0e03 set b = 200 where a = 100;
SELECT* FROM t0e03, t0e00;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(da�e_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
DELETE FROM t0 WHERE rowid<200;ANALYZE;


sqltext:
CREATE TABLE "0 0" ("""00""");
INSERT INTO "0 0" ("""00""") VALUES (1);
SELECT "" (1)"" FROM "0 0";


sqltext:
CREATE TABLE x0(a CHECK( a||b ), b);
CREATE TABLE t0(a, b, CHECK( a||b ))�
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(2001-01-011)tSt00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER tp BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER d0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2r&;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4( "a",TE VIRTUAL TAB"a",TE VIRTUAL TABLE t0 USIN"b"LE t0 USIN"b"prefix="");


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT rtrim(?,1) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0.0,3);
INSERT INTO t0 VALUES(0.0,0.0,0);
SELECT DISTINCT "a","b"OR@x, * FROM t0 ORDER BY z;


sqltext:
CREATE TABLE t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0.0,3);
INSERT INTO t0 VALUES(0.0,0.0,0);
SELECT DISTINCT x, zeroblob(2001.01-011) y FROM t0 GROUP BY z;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x>avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x> avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y) >$avg(y));


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT date(1,1,1) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('a��');
INSERT INTO t0t0006 VALUES('A��');
S6;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('000');
INSERT INTO t0000(a) VALUES('000<);
END;
CRE000 AFTER INSERT ON t0000 BEGIN
INSERT I00');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INTEGER PRIMARY KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT $$$$$$$$� t001, t002 WHERE t002.z GLOB '0000';


sqltext:
CREATE TABLE nn(a, b, c, d, e, PRIMARY KEY(c,a,e));
CREATE TABLE nn0(a, b, c, d, e, PRIMARY KEY(c,a,e))�WITHOUT ROWID;
INSERT INTO nn VALUES(1,2,3,4,5);
INSERT INTO nn0 VALUES(1,2,3,4,5);


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1, -11,'����');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,B) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a);
CREATE TABLE t0(a);EXPLAIN
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 2001-01,0110;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('000');
INSERT INTO t0000(a) VALUES('000<);
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT I00');
INSERT INTO t0000(b) VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char( -11)tSt00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c /1, b||c||a, c||a||b FROM abc;
IO abcb, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));ANALYZE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t0(�ӝ�c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b, b);
000000


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(3);
INSERT INTO t0(rowid,x) SELECT nullif(x*2E16,14), x+100 FROM t0;
SELECT rowid, x FROM t0;


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);ANALYZE TABLE E00000000000ull, S0000 int nxt null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P0000000(C000000 int null, S00000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, RE000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auto_vacuum=O00;
PRAGMA synchronous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA jou0;
PRAGMA synchronous=N00000rnal_mode=TRUNCATE;
INSERT INTO t1 VALUES(1, 2);


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a �NTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2, avg(1)| substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b= /* */a BETWEEN.30 AND 60;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX s000e_0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address �OLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NU,L);
I


sqltext:
BEGIN TRANSACTION;
CREATE TABLE a(i0 INT0000);
INSERT INTO a VALUES(1);
INSERT INTO a VALUES(2);
INSERT INTO a VALUES(3);
CREATE TABLE b(i0 INT0000);
INSERT INTO b VALUES(NULL);
INSERT INTO b VALUES(3);
INSERT INTO b VALUES(4);
INSERT INTO b VALUES(5);
COMMIT;
SELECT @1ROM  IN (SELECT "a","a" b)a WHERE i0 NOT IN (SELECT "a","a" b);


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUML b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 QGIDx=x+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t1(a char(1), b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE a IN (1,A) ORDER BY b;


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b='000'), t0 WHERE strftime(1,CURRENT_TIME);
IFSERT c='


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRa)'
WHERE name='t1a';
UPDATE sqlite_master SET sql= time(1 -11);
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
VACUUM ink


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES(#ab00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('ABX0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t0 AFTER UPDATE OF t0 BEGIN
I


sqltext:
CREATE TABLE x(i0 integer primary key, a TEXT NULL);
INSERT INTO x (a) VALUES ('00');
CREATE TABLE tempx(i0 integer primary key, a TEXT NULL);
INSERT INTO tempx (a) VALUES ('0');
CREATE VIEW t01 AS SELECT 00e0, hex(1)FROM x JOIN tempx tx ON tx.i0=x.i0;
CREATE VIEW t010 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx on tx.i0=x.i0;
CREATE VIEW t02 AS SELECT * FROM t01 UNION SELECT * FROM t010;
SELECT * FROM t02;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 AND(t0.i0<>500 AND t0.i0=t1.i0));


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim( -11,1)


sqltext:
SELECT quote(likely(x'000000BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB000BBBB000000'));


sqltext:
CREATE TABLE t44(a INT0000, b INT0000);
INSERT INTO t44 VALUES(1,2);
INSERT INTO t44 VALUES(3,4);
SELECT*
FROM t44 x
LEFT JOIN(SELECT a AS c, b AS d FROM t44) A000 ON a= upper(1)= total_changes()


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES( 'a''b''0z');
INSERT INTO t0 VALUES( 'a''b''0y');
INSERT INTO t0 VALUES('c0');
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m;
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m COLLATE binary;
SELECT '0', substr(m,?)  FROM t0 ORDER BY lower(m);


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('AB0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000NOTNULL0000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000�0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('AB000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OF0000000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


sqltext:
CREATE TABLE t30a(x); INSERT INTO t30a VALUES(1),(2),(3);
CREATE TABLE t300(y); INSERT INTO t300 VALUES(90), (99);
SELECT max((SELECT zeroblob(2001-01-011) t300)) FROM t30a;


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
 SELECT tabC.a, txyZ.x< tb0Th.a, tb0tH.x, *
FROM tabc, txyz ORDEbc, txyz, tb0th GROUP BY 9 LIMIT 1;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(60) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomb~ob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE x1(a);
INSERT INTO x1 VALUES(1);
CREATE TABLE x0(b NOT NULL);
CREATE TABLE x3(c, d);
INSERT INTO x3 VALUES('0',NULL);
INSERT INTO x3 VALUES('b',NULL);
INSERT INTO x3 VALUES('c',NULL);
SELECT * FROM x1 LEFT JOIN x0 LEFT JOIN x3 ON x3.d = x0.oid


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR round(1,1)


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( round(1, -13)),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;�CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2r6;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
DELETE FROM t0 WHERE rowid&200;
VACUUM;


sqltext:
SELECT  1000000%0000000600600001000000%0000000600000001000000%0000000600600001000000%00000006000000010000;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(3);
INSERT INTO t0(rowid,x) SELECT nullif(x*2+1.,14), x+100 FROM t0;
S


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('6






















  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELEC FROM t1;


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n00b00"MATCH (SELECT "000000") "n00b00" FROM "0000" ORDER BY "000000", "n00b00" LIMIT 1) AS "0000";


sqltext:
CREATE TABLE t30a(x); INSERT INTO t30a VALUES( 1=12),(3);
CREATE TABLE t300(y); INSERT INTO t300 VALUES(90), (99);
SELECT max((SELECT avg(y) FROM t300)) FROM t30a;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%h%' ESCAPE ' @10';


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM t4 WHERE g=7;
SELERT I


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE tϐ������RECURSIVE��0t�ϐ��������06(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t VALUES('ab0');


sqltext:
CREATE TABLE t1(x, y REAL);
INSERT INTO t1 VALUES(1,'1.0');
INSERT INTO t1 VALUES(2, '.5');
INSERT INTO t1 VALUES(3, '1.');
INSERT INTO t1 VALUES(4,'1e0');
INSERT INTO t1 VALUES(5,'.03');
INSERT INTO t1 VALUES(6,'1e0');
INSERT INTO t1 VALUES(10,'1.');
INSERT INTO t1 VALUES(12,'.5');
INSERT INTO t1 VALUES(13,'3.');
INSERT INTO t1 VALUES(14,'3e0');
INSERT INTO t1 VALUES(15,'.2');
INSERT INTO t1 VALUES(16,' 20e4');
INSERT INTO t1 VALUES(20,'1 ');
INSERT INTO t1 VALUES(22,'5 ');
INSERT INTO t1 VALUES(23,'3.');
INSERT INTO t1 VALUES(24,'1.e0');
INSERT INTO t1 VALUES(25, '.5e+3  ');
INSERT INTO t1 VALUES(26,'1 ');
SELECT x FROM t1 WHERE typeof(y)=='real' ORDER BY y;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp�cache_size =210;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(32001-01-0100), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  group_concat(1,1) q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
CREATE VIEW z AS
SELECT  total(1)p FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT * from z;


sqltext:
CREATE TABLE t000(c000 INT0000);
CREATE TABLE t002(c000 INT0000);
SELECT a,b0.* ,ROM,t000 NATURAL JO


sqltext:
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(randomblob(100));
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT sqlite_version()FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
CREATE INDEX i0 ON t1(x);


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND-b='000'), t0 WHERE strftime(1,1,1,1 AND-b='000') >=0


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2( [a]a, b, FOREIGN KEY(a, b) REFERENCES t1 ON DELETE CASCADE);REPLACE INTO t1 VALUES(1,2);REPLACE INTO t1 VALUES(1, 2);


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.a = 2001-01-010 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t1;
UPDATE t0 SET y=y+1 WHERE x=new.rowi2001-01-01000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT group_concat(1,1) IN (SELECT b FROM t0 ORDER BY b);


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, datetime(1,1,1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c AND b=? AND c=? AND d=? AND e= likely(1)AND e=B;


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(b);
INSERT INTO t000 VALUES('stat0','s0'),('00000','000'),('0r000','m0r00r0');
SELECT likely(1) FROM t000 WHERE a?='stat0' OR b='m0r00r0' ORDER BY +a;


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,b);
INSERT INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGN KEY(x,y) REFERENCES t0000(a,b));
INSERT INTO t0e02 VALUES(300,100,200);REINDEX t0e01 b =2;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b�INT0000 DEFAULT-'90�NOTNU99999999999LL';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e999LL';
ALTER TABLE t1 ADD CLT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM NO;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, sqlite_compileoption_used(1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(52001-01E0100), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(600));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t0(x sqlite_compileoption_get(1));
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%�%' ESCAPE '�';


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT x, y FROM t01
UNION ALL
SELECT x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM v0 WCO ORDER BY y;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN A THEN randomblob(12001-01-01)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;ANALYZE


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT *�FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8,CURRENT_TIME b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;
BEGIN;
CREATE TABLE noname.n00000(x);
CREATE TABLE inmem�i0000(y);


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (12001-01-01,A) OR changes()


sqltext:
PRAGMA page_size= 512;
PRAGMA aut�_vacuum = incremental;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT ANT�����������������������������512-4)) );
INSERT)INTO t1 VALUES( randomblob(2 * (500-4)) );
INSERT INTO t1 VALUES( randomblob(110 * (PRAGMA page_size= 512;
PRAGMA aS(randomblob(3 @ (5-4)) );
DELETE FROM t1 WHERE row��= F;
PRAGMA incremental_vacuum = 2;
DELETE FROM t1 WHERE rowid = 1;


sqltext:
CREATE TABLE t0(x INTEGER PRIMARY KEY, y);
CREATE TABLE t3(a, b);
CREATE TRIGGER a0000000 AFTER INSERT ON t0 BEGIN
INSERT INTO t3 VALUES(new.x, new.y);
END;
INSERT INTO t0 VALUES(5000000000, 0);EXPLAIN
SELECT last_insert_rowid();


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('stat0','s0'),( hex(1),'000'),('0r000','m0r00r0');
SELECT a, b, '0' FROM t000 WHERE a=='stat0' OR b='m0r00r0' ORDER BY +a;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIM "a","b" b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, b =-'000E';
COMMIT;


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM ((t0 JOIN t2 ON t0.a=t2.b) AS x JOIN t2x ON x.b=t2x.b>-1) as00;


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba,ba ON t10 BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,e,d,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(c,b,c,d,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
CREATE TABLE t6(x INT0000);
INSERT INTO t6 VALUES(1);
INSERT INTO t6 VALUES(1<<70);
SELECT hex(1)+- ((1<<63)+1) from t6;


sqltext:
CREATE TABLE t1(a,x a,b);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'000000000f000000');
INSERT INTO t1(oid,a,x)VALUES(900,2,'0f00000000000000');
INSERT INTO t1(oid,a,x)VALUES(9223372036854775800,3,'0f0000000000000f');
INSERT INTO t1(oid,a,x)VALUES(7,4,'000000000000000f');
INSERT INTO t1(oid,a,x)VALUES(3,5,'0000000000000003');
INSERT INTO t1(oid,a,x)VALUES(6000000,6,'0000000001000000');
INSERT INTO t1(oid,a,x)VALUES(90000000000,7,'0000030000000000');
INSERT INTO t1(oid,a,x)VALUES(300,8,'0000000000000f00');
INSERT INTO t1(oid,a,x)VALUES(6000005,9,'00000000000f0000');
INSERT INTO t1(oid,a,x)VALUES(200000000000,10,'00000f0000000000');
INSERT INTO t1(oid,a,x)VALUES(-8,11,'0000000f00000000');
INSERT INTO t1(oid,a,x)VALUES(0400000,12,'00000000000f000f');
INSERT INTO t1(oid,a,x)VALUES(40000000000,13,'00000f000000000f');
INSERT INTO t1(oid,a,x)VALUES(67000,14,'00000000000f00f0');
INSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000f00ff');
INSERT INTO t1(oid,a,x)VALUES(304,16,'0000000000004000');
INSERT INTO t1(oid,a,x)VALUES(7000000000000,17,'00000f00000000f0');
INSERT INTO t1(oid,a,x)VALUES(80000,18,'00000000000f0f00');
INSERT INTO t1(oid,a,x)VALUES(100000000000,19,'0000010000000000');
INSERT INTO t1(oid,a,x)VALUES(0040000000,20,'00000000000f0f0f');
INSERT INTO t1(oid,a,x)VALUES(-30,21,'000f000000000000');
INSERT INTO t1(oid,a,x)VALUES(34359738368,22,'0000000800000000');
INSERT INTO t1(oid,a,x)VALUES(30000,23,'0000000000000f0f');
INSERT INTO t1(oid,a,x)VALUES(8388608,24,'0000000000800000');
INSERT INTO t1(oid,a,x)VALUES(10000000000000,25,'00000f00000000ff');
INSERT INTO t1(oid,a,x)VALUES(20000000000000,26,'0001000000000000');
INSERT INTO t1(oid,a,x)VALUES(3000000000000000,27,'00000f0000000f00');
INSERT INTO t1(oid,a,x) VALUES(72057594037927936,28,'0100000000000000');
INSERT INTO t1(oid,a,x) VALUES(-6,29,'00000f0000000f0f');
INSERT INTO t1(oid,a,x) VALUES(205,30,'00000000000000f0');
INSERT INTO t1(oid,a,x) VALUES(4,31,'0000000000000004');
INSERT INTO t1(oid,a,x) VALUES(-68,32,'00000f0000008000');
INSERT INTO t1(oid,a,x) VALUES(-2,33,'00000f0000000ff0');
INSERT INTO t1(oid,a,x) VALUES(10000000000008,34,'0000800000000000');
INSERT INTO t1(oid,a,x) VALUES(50000000000,35,'0000008000000000');
INSERT INTO t1(oid,a,x) VALUES(4000000000,36,'0000000100000000');
INSERT INTO t1(oid,a,x) VALUES(-60,37,'00000f0000800000');
INSERT INTO t1(oid,a,x) VALUES(-1,38,'00000f0f');
INSERT INTO t1(oid,a,x) VALUES(3000000000,39,'00000000000f0ff0');
INSERT INTO t1(oid,a,x) VALUES(8400000,40,'0000000010000000');
INSERT INTO t1(oid,a,x) VALUES(2,41,'0000000000000002');
INSERT INTO t1(oid,a,x) VALUES(90000,42,'0000000000200000');
INSERT INTO t1(oid,a,x) VALUES(50000000,43,'000200000000');
INSERT INTO t1(oid,a,x) VALUES(-7,44,'000f800000000000');
INSERT INTO t1(oid,a,x) VALUES(060000000,45,'0080000000000000');
INSERT INTO t1(oid,a,x) VALUES(5000000000,46,'0000000000000fff');
INSERT INTO t1(oid,a,x) VALUES(-20,47,'00000f000000f000');
INSERT INTO t1(oid,a,x) VALUES(60000,48,'00000000000000ff');
INSERT INTO t1(oid,a,x) VALUES(128,49,'0000000000000080');
INSERT INTO t1(oid,a,x) VALUES(32768,50,'0000000000008000');
INSERT INTO t1(oid,a,x) VALUES(2147483648,51,'0000000080000000');
INSERT INTO t1(oid,a,x) VALUES(-3,52,'00000f00000000fd');
INSERT INTO t1(oid,a,x) VALUES(-28,53,'00000f0000000f80');
INSERT INTO t1(oid,a,x) VALUES(-29,54,'00000f0000000f70');
INSERT INTO t1(oid,a,x) VALUES(-9223372036854775808,55,'8000000000000000');
INSERT INTO t1(oid,a,x) VALUES(400000000000,56,'0000040000000000');
INSERT INTO t1(oid,a,x) VALUES(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VALUES(00800,58,'00000f000000f00f');
INSERT INTO t1(oid,a,x) VALUES(0,59,'0000000000000000');
INSERT INTO t1(oid,a,x) VALUES(1,60,'0000000000000001');
INSERT INTO t1(oid,a,x) VALUES(206,61,'0000000000000100');
INSERT INTO t1(oid,a,x) VALUES(60006,62,'0000000000010000');
INSERT INTO t1(oid,a,x) VALUES(-5000000000,63,'00000f8000000000');
INSERT INTO t1(oid,a,x) VALUES(8,64,'0f80000000000000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 ON t1(x);


sqltext:
SELECT 1.00000,0<000.06000000000<000.06000000000<000.00<000.06006000000000<000.06000000000<000.000;
00;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT random(),randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64, instr(1,1)b FROM t1;
ANALYZE;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT 8+2,randomblob(400)FROM t1;
IT IN,randomblob(400)FROM t1;
INSERT ndomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
PRAGMA cache_spill=OFF;
PRAGMA cache_spill;
PRAGMA main.cache_spill;EXPLAIN
PRAGMA temp.cache_spill;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);EXPLAIN
SELECT a, b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 3;


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);EXPLAIN
DROP TABLE t1;
PRAGMA integrity_check;
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
CREATE TABLE x0(a CHECK( a||b ),  b, CHECK( a||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;


sqltext:
CREATE TABLE De00Ta0le (x INT0000, Tex00e0 TEXT, D000 Real);
CREATE INDEX D00000000000 ON De00Ta0le (Tex00e0);
INSERT INTO De00Ta0le VALUES(9,8,7);
INSERT INTO De00Ta0le VALUES(1,2,3);
CREATE VIEW De00V0e0 AS SELECT * FROM De00Ta0le GROUP BY Tex00e0;
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0O1;


sqltext:
SELECT *
FROM (SELECT name+1 AS one FROM sqlite_master LIMIT 1 OFFSET 1)
Wster LIMIT 1 OFFSET 1)
WHERamLIKE '000000';


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16, sqlite_source_id()b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(x �NTEGER PRIMARY KEY, y, z);
CREATE TABLE t2(a, b);
CREATE VIEW a002 AS SELECT a, sum(b) AS m FROM t2 GROUP BY a;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN (A,2,3)%Y


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');REPLACE INTO t0t0000 VALUES('ABX0000000000000000000000000000000000000000000000');
SELECT 00000000000E000000000000000000000000000000000000000
00
SEL


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a,CURRENT_DATE x FROM t1, t2 ORDER BY 2, 2;


sqltext:
CREATE TABLE t1(x, y DEFAULT(-replace(1,1,1)));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y)%Y FROM t1;


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;EXPLAIN
INSERT INTO t1 VALUES(randomblob(800));
BEGIN;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) FROM�t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
CREATE TABLE t1(x);
CREATE TABLE t2(y);
INSERT INTO t1 VALUES(111);
INSERT INTO t1 VALUES(222);
INSERT INTO t2 VALUES(300);
INSERT INTO t2 VALUES(444);
SELECT * FROM t1, t2
WHERE (x=111 AND avg(1)) OR x=222
GROUP BY x, y;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,b);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE /* */(SELECT "a","b"t1 WHERE a<10);
DR


sqltext:
SELECT sqlite_rename_trigger('CREAT0?//................................/"//////////�00 WHEN',NULL);


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<90;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t10("c0l.0" [char.3]);
CREATE TABLE t11 AS SELECT sqlite_source_id() sql FROM sqlite_master WHERE name = 't10';


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0
LEFT JOIN t102 t1 0));


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(b);
INSERT INTO t000 VALUES('s','s0'),('00000','000'),('0r000','m0r00r0');
SELECT a, b, '0' FROM t000 WHERE round(1,1) OR b='mr0' ORDER BY +a;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2.1) AS00 FROM t0 GROUP BY  zeroblob(1), 2;


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE+-11 AND b='000'), t0 WHERE c='abc';


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a0',b)OR a='0' ORDER BY + -1


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT strftime(1,1,1,1) x, y FROM t01
UNION ALL
SELECT 1=1 x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT * FROM v0 WHERE x='0' OR likely(1)


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a char(1) PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1,X'0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a��Ϛ0',b)OR a=CURRENT_TIME +x;


sqltext:
CREATE TABLE blob0(k, v BLOB);
INSERT INTO blob0 VALUES(1, zeroblob(length(CAST( -10000 AS BLOB))));


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM ((t0 JOIN t2 ON t0.a=t2.a) AS x JOIN t2x ON x.b=t2x).b) as00;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT sqlite_version(), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%2;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(1);
ROLLBACK;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;END
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;
INSERT INTO t1 VALUES(randomblob(800));
BEGIN;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   8 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT total_changes() FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT group_concat(1,1)  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE""(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q QROM x AS x1, x AS x2 WHERE x2.a=x2.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, AS y2 WHERE y1.q=y2.q;
SELECT * from z;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TaBLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1,X'');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c, -14) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4, -1.) FROM t1;
INNSE


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHE, t0 WHERE c=1 AND b='000'), t0 WHERE strftime(1,1,1,1) c='


sqltext:
CREATE TABLE t3(a,EXINTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT * FROM t3 WHERE b=2 AND c=3 ORDER BY d DESC,d DESC, e DESC, b,  e DESC, b, c,d DESC, e DESC, b,  e DESC a DESC;


sqltext:
CREATE TEMP TABLE t0(a PRIMARY KEY, b, c);
CREATE INDEX t000000 ON t0(c COLLATE BINARY);REINDEX INDEX t000002 ON t0(b COLLATE NOCASE);


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;EXPLAIN
DELETE FROM t1 WHERE rowid%2;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%h%' ESCAPE '�������������������0';


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN 1 THEN x'0000000000'WHEN 2 THEN zeroblob(5)ELSE 'a''b'END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT-'90�NOTNULL';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x;1;
S


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT a FROM t0 WHERE b IN (SELECT zeroblob(1)LIKE zeroblob(1) b FROM t0 ORDER BY b);


sqltext:
CREATE TABLE t14(a,b,k);
INSERT INTO t14 VALUES(1,6) INTERSECT VALUES( l2,3),(4,5,6) INTERSECT VALUES( lower(1),3,1),( total(1),1,3);


sqltext:
CREATE TABLE t1(a char(1),b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%q0%s',a,b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('ABX0000000000000000000000000000000000000000000000');
SELECT 0E000000000600000000000000000000000000000000000000000000000
00
SEL


sqltext:
CREATE TABLE t1(x COLLATE NOCASE PRIMARY KEY);
CREATE TRIGGER t00 AFTER DELETE ON t1
WHEN EXISTS ( SELECT 1 FROM t0 WHERE o00.x0=$y )
BEGIN
INSERT INTO t0 VALUES(o00.x);
END;
C


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT x, y FROM t01
UNION ALL
SELECT x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT * FROM v0 WHERE x>'0' ORDER BY y;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1( "a"UNIQUE,"�"R PRIMARY KEY ON CONFLICT REPLACE, b);


sqltext:
PRAGMA cache_size = 5;
CREATE TABLE t11(a, b);
INSERT INTO t11 VALUES(randomblob(5000),NULL);
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(50<0), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob( [a]), NULL FROM t11; --0
UPDATE t11 SET b0= c0000(a);


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY m OR round(M,4);


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2* randomblob(1)a,2* changes()b,2*c,d FROM t1;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY ON CONFLICT FAIL, b);
CREATE TABLE t0(x INTEGER PRIMARY KEY ON CONFLICT FAIL, y);
INSERT INTO t0 VALUES(1,3);
INSERT INTO t0 SELECT * FROM t0;
S


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,idx,stat)VALUES('t1','t1','10000');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a Bc;


sqltext:
PRAGMA cache_size=10;
CREATE TABLE t1(x,y);
INSERT INTO t1 VALUES(1,randomblob(100000));
INSERT INTO t1 VALUES(2,randomblob(50000));
INSERT INTO t1 VALUES(3,randomblob(20000));
INSERT INTO t1 VALUES(4,randomblob(10000));
SELECT x, length( @1y) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE!TABLE!00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT /* */ x<1 FROM i ORDER BY 1)
SELECT CURRENT_DATE/* */ x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('ABX0000000000000000000000000000000000000000000000');
SELECT 0000000000000000000000000000600000000000000000000000000000000000000000000000
00
SEL


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));REINDEX rtrim(1,1)00 inull, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P000ext not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
PRAGMA auto_vacuum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t3(a);
CREATE INDEX x ON t1(b);
DROP TABLE t3;
PRAGMA integrity_check;
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT time(1 ||  -11) x FROM i LIMIT 10;


sqltext:
CREATE TABLE t30a(x); INSERT INTO t30a VALUES(1),(2),(3);
CREATE TABLE t300(y); INSERT INTO t300 VALUES(90), (99);
SELECT max((SELECT avg(x) FROM t300)) FROM t30a;


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( total_changes()),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c T DEFAULT REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;VACUUM


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIM "a","b" b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, b = '000 ';
COMMIT;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, '�000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,2001-01-013,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY sum(1)


sqltext:
CREATE TABLE t0(x, a, b);
CREATE INDEX t0a ON t0(x, a COLLATE nocase);
CREATE INDEX t0b ON t0(x, b);VACUUM


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);EXPLAIN
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I00000000000ext not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(2001-01-011,1),( 1=11,1),( 1=11,2);
CR11,2);ABLE 1, t2 ORDER BY 1, 2;


sqltext:
CREATE TABLE ""("" UNIQUE, x CHAR(100));
CREATE TABLE t2(x);
INSERT INTO ""("") VALUES(1);REINDEX INTO t(2);
SELECT * FROM "", t2;


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
CREATE VIEW v2 AS SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz, tb0th ORDER BY a,bIMIT 1;


sqltext:
CREATE TABLE t1(a TEXT COLLATE BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e-08,'5.4e-08');
SELECT typeof(a), a, typeof(b), b FROM t1;VACUUM


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES('0','2');
INSERT INTO t0 VALUES('0','3');
SELECT strftime(1,1,1,1) IN (SELECT zeroblob(12001-01-01) ||  b FROM t0 ORDER BY b);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c));
CREATE INDEX t0000 ON t0(a,a,c);
CREATE UNIQUE INDEX t00000 ON t0(a,e,b,c);
EXPLAIN QUERY PLAN SELECT rowid FROM t0 WHERE a=? AND b=?;


sqltext:
CREATE TEMP TABLE t00���������������01(a,b,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*[E��0';


sqltext:
PRAGMA auto_vacuum=0;
PRAGMA legacy_file_format=1;
BEGIN;
CREATE TABLE t1(x,y);
INSERT INTO t1 VALUES(1,0);
INSERT OR IGNORE INTO t1 SELECT x*2,0 FROM t1;
INSERT OR IGNORE INTO t1 SELECT x*3,0 FROM t1;
INSERT OR IGNORE INTO t1 SELECT x*5,0 FROM t1;
INSERT OR IGNORE INTO t1 SELECT x*7,0 FROM t1;
INSERT OR IGNORE INTO t1 SELECT x*11,y FROM t1;
INSERT OR IGNORE INTO t1 SELECT x*13,y FROM t1;
CREATE INDEX t000 ON t1(x);
CREATE TABLE t0 AS SELECT x,2 as y FROM t1 WHERE rowid%5!=0;
COMMIT;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN 1 THEN x'0000000000'WHEN 2 THEN zeroblob(4)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2


sqltext:
CREATE TABLE c000a00001(a, b);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
CREATE VIEW c000a000v1 AS SELECT avg(1)IN c000a00001
ORDER BY 1 COLLATE u000;
SELECT * FROM c000a000v1;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2(a, b load_extension(1,1)REFERENCES t1 ON DELETE CASCADE);REPLACE INTO t1 VALUES(1, 2);


sqltext:
CREATE TABLE t0(x, y);
CREATE INDEX i0 ON t0(x, y);
CREATE VIEW v0 AS SELECT /*  ;*/ * FROM t0;
ANALYZE;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b int);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b || '0000' || new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();ANALYZE


sqltext:
CREATE TABLE x0(a CHECK( a||b ), b);
CREATE TABLE t0(a, b, CHECK( a||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;VACUUM


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+96,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY d DESC, c DESC, b, c, a , b, c, a ,C;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(2,'000');
INSERT INTO t1 VALUES(1,'0');
INSERT INTO t1 VALUES(3,'000000');
SELECT *, ( SELECT y FROM (SELECT x.b "a","b"y) )
FROM ( SELECT * FROM t1 ) AS x;


sqltext:
CREATE TABLE c000a00001(a, b);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
CREATE VIEW c000a000v1 AS SELECT * FROM c000a00001
ORDER BY 1 COLLATE ""a";1;


sqltext:
CREATE TABLE t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(8,0,0);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0.0,3);
INSERT INTO t0 VALUES(0.0,0.0,0);
SELECT DISTINCT x, zeroblob(2001-01-011) y FROM t0 ORDER BY z;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(b,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(b, d);REPLACE INTO t0 VALUES('000','000r000','00a','000000');
INSERT INTO t0 VALUES('0000000','j00000','0000000','0000000');
INSERT INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT *, '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES(1,2,$3);
INSERT INTO t1 VALUES(1,NULL, 3);
INSERT INTO t1 VALUES(1,2,$3);
INSERT INTO t1 VALUES(1, 2, NULL);
INSERT INTO t1 VALUES(4, 5, 6);
CREATE UNIQUE INDEX i0 ON t1(b, a, c);


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY( a,bx, y));
CREATE TABLE t2(a, b, FOREIGN KEY(a, b) REFERENCES t1 ON UPDATE CASCADE);
INSERT INTO t1 VALUES(1,2);
INSERT INTO t2 VALUES(1, 2);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b, b,c,d,b,c)) WITHOUT ROWID;,e);
000


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| length(1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t1(x COLLATE NOCASE PRIMARY KEY);
CREATE TRIGGER t00 AFTER DELETE ON t1
WHEN EXISTS ( SELECT 1 FROM t0 WHERE o00.x0= y )
BEGIN
INSERT INTO t0 VALUES(o00.x);
END;
CREATE TABLE t0(y REFERENCES t0);
INSERT INTO t1 VALUES('0');
INSERT INTO t1 VALUES('');
INSERT INTO t0 VALUES('0');VACUUM


sqltext:
PRAGMA enchding=6;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INE TT0charDEFAULT '�������������������������������900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x1;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(902001-01-0100), zeroblob(5000));
DELETE FROM t1;
PRAGMA incremental_vacuum;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x%1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 2001-01-0,10;


sqltext:
CREATE table t0(a,b);
INSERT INTO t0 VALUES('0000','00');
INSERT INTO t0 VALUES('00000','xy0');
CREATE TABLE t2(x,y);
INSERT INTO t2 SELECT strftime() a, CASE b WHEN 'xy0' THEN null ELSE b END FROM t0;
SELECTCx, y FROM t2 ORDER BY x;


sqltext:
BEGIN;
CREATE TABLE t3(a INT0000, b REAL, c TEXT);
CREATE TABLE t4(f INT0000, g REAL, h TEXT);
INSERT INTO t3 VALUES('l0',NULL,000000);
INSERT INTO t3 VALUES('a00','o0',NULL);
INSERT INTO t3 VALUES('h000','t0000000',5000000000);
INSERT INTO t3 VALUES(NULL,0.2,'000');
INSERT INTO t3 VALUES('s000',040000, NULL);
INSERT INTO t3 VALUES('o00000000', 'i0', 000000);
INSERT INTO t3 VALUES(0.1, 300000, NULL);
INSERT INTO t3 VALUES(0005000000, 'o0', '000');
INSERT INTO t3 VALUES(NULL, 0.2, '000000000');
INSERT INTO t3 VALUES('o000', 't00', 000000);
INSERT INTO t3 VALUES(034000,0.1,2000000.003);
INSERT INTO t3 VALUES('o', 's000', '000');
INSERT INTO t3 VALUES(NULL, 'l0000', 000000);
INSERT INTO t3 VALUES('f000', 't0000', '000000');
INSERT INTO t3 VALUES('f000', 'A00000', '0');
INSERT INTO t3 VALUES('f000', 's00000000', '0000000');
INSERT INTO t3 VALUES(0.6, 'l0000', '0000');
INSERT INTO t3 VALUES(0030000000, 300000, '00000');
INSERT INTO t3 VALUES('s', 034000, '000');
INSERT INTO t3 VALUES('p', NULL, '0000');
INSERT INTO t3 VALUES('A00000',0.5, '0000000');
INSERT INTO t3 VALUES('A00000', NULL, '0000');
INSERT INTO t3 VALUES(0.6,0.3, '0000');
INSERT INTO t3 VALUES('v0000000', 't0000', '0000');
INSERT INTO t3 VALUES('u000000', 'r000000000', '00');
INSERT INTO t3 VALUES('a00', 300000, '000');
INSERT INTO t3 VALUES(NULL, 0005000000, '00');
INSERT INTO t3 VALUES(0.1, 034000, 0.4);
INSERT INTO t3 VALUES('a00', 3000000000, '000');
INSERT INTO t3 VALUES('N00', 'a00', 1000000000);
INSERT INTO t3 VALUES('o0', 'o0000', '00000');
INSERT INTO t3 VALUES(NULL, 't0000000', '000');
INSERT INTO t3 VALUES(0.1, NULL, '00000');
INSERT INTO t3 VALUES('N00',0.5, NULL);
INSERT INTO t3 VALUES('s', 0020000000, '00');
INSERT INTO t3 VALUES(3000000000,0.1, '000');
INSERT INTO t3 VALUES(0.2,0.5, 5000000000);
INSERT INTO t3 VALUES(0.2, 2600000000, '000000000');
INSERT INTO t3 VALUES('w000', 'h00', '00');
INSERT INTO t3 VALUES('u000000', 0020000000,1000.000006);
INSERT INTO t3 VALUES('o0', 'A00000', '000');
INSERT INTO t3 VALUES('o00000000', NULL, '0000');
INSERT INTO t3 VALUES('w0000000', 'i0',1000.000006);
INSERT INTO t3 VALUES('i0', 'a00', '00000000');
INSERT INTO t3 VALUES('a0', 't00', '00000000');
INSERT INTO t3 VALUES(0010000000, 0010000000, '0000');
INSERT INTO t3 VALUES(0.10, 'l0000', 1000000000);
INSERT INTO t3 VALUES(NULL, 0000300000, '000');
INSERT INTO t3 VALUES(NULL, 's',000000);
INSERT INTO t4 VALUES('h', 'f', '0');
INSERT INTO t4 VALUES('s', 'o', NULL);
INSERT INTO t4 VALUES('A', 'h', '0');
INSERT INTO t4 VALUES('h', 'p', '0');
INSERT INTO t4 VALUES('h', NULL, '0');
INSERT INTO  t4 VALUES('a',0200000000, '0');
INSERT INTO t4 VALUES('t', 'o', '0');
INSERT INTO t4 VALUES('a', 100000, 000000);
INSERT INTO t4 VALUES('a', 'i', '0');
INSERT INTO t4 VALUES(3, 2, '0');
INSERT INTO t4 VALUES('i', 'a', '0');
INSERT INTO t4 VALUES('a', 's',300000000.5);
INSERT INTO t4 VALUES('f', 0005000000, 000000);
INSERT INTO t4 VALUES('s', 'a', '0');
INSERT INTO t4 VALUES(300000, 040000, '0');
INSERT INTO t4 VALUES('p', NULL, 000000);
INSERT INTO t4 VALUES('s', 'h', '0');
INSERT INTO t4 VALUES(0.1,0.1, 000000);
INSERT INTO t4 VALUES(000030, 'h', '0');
INSERT INTO t4 VALUES(NULL, 'a', 000000);
INSERT INTO t4 VALUES('r', NULL, '0');
INSERT INTO t4 VALUES('v',2, '0');
INSERT INTO t4 VALUES(060000, 'p', '0');
INSERT INTO t4 VALUES(6, 'o', '0');
INSERT INTO t4 VALUES('p', 'o', '0');
INSERT INTO t4 VALUES('i', 'o', 000000);
INSERT INTO t4 VALUES('o', 'N', '0');
INSERT INTO t4 VALUES(NULL, 'p', '0');
INSERT INTO t4 VALUES('o', 'h', 000000);
INSERT INTO t4 VALUES('l', 'h', 0);
INSERT INTO t4 VALUES(500000, 'N', '0');
INSERT INTO t4 VALUES('a', 'N', NULL);
INSERT INTO t4 VALUES('h', 'o',0);
INSERT INTO t4 VALUES(0.1, 'v', 000000);
INSERT INTO t4 VALUES('h', 'a', '0');
CREATE TABLE t5(s);
INSERT INTO t5 VALUES('0');
CREATE TABLE t6(t);
INSERT INTO t6 VALUES(100000);
COMMIT;


sqltext:
SAVEPOINT abc;
CREATE TABLE t0(a0 b);
ROLLBACK;
ROLLBACK 55555555555TTO 55555555TTO abc;
C�abc;
C�T;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE a=D AND b=? AND c=? AND d=? AND b=? AND c=? AND d=? AND e e=?;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(6);
ROLLBACK;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE x LIKE '%h%' ESCAPE 'NOTNULL0';


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000'AND substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '000��';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE TABLE p00000(x PRIMARY KEY);
CREATE TABLE c00000(c REFERENCES p00000 ON DELETE RESTRICT);
CREATE TABLE c00002(c REFERENCES p00000 ON DELETE NO ACTION);VACUUM


sqltext:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b='000'), t0 WHERE c='abc';ANALYZE


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES(' sqlite_compileoption_used(1)ABX');
SELECT DISTINCT a FROM t0t0006;


sqltext:
CREATE TABLE t0(x,y DEFAULT 4.3, z DEFAULT x'0000');
INSERT INTO t0 DEFAULT VALUES;
SELECT * FROM t0;VACUUM


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+.4,b FROM t1;
ANALYZE;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE  1=1 NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


