2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
DROP TABLE IF EXISTS test.t1;
9
dummyKey INTEGER NOT NULL,
47
LOCK TABLES test.t1 WRITE;
48
INSERT INTO test.t1 VALUES (6,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'111111',b'111110',b'110101',4,5,5,5,5,5,5,5,5,5,3,NULL,1);
49
INSERT INTO test.t1 VALUES (1,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'111111',b'000000',b'100100',4,5,5,5,5,5,5,5,5,5,3,2,1);
50
INSERT INTO test.t1 VALUES (2,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'000000',b'101010',b'010101',4,5,5,5,5,5,5,5,5,5,3,2,1);
51
INSERT INTO test.t1 VALUES (3,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'101010',b'111111',b'000000',4,5,5,5,5,5,5,5,5,5,3,2,1);
52
INSERT INTO test.t1 VALUES (4,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'0',1,1,4,5,5,5,5,5,5,5,5,5,3,2,1);
53
INSERT INTO test.t1 VALUES (5,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1);
54
INSERT INTO test.t1 VALUES (7,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1);
55
INSERT INTO test.t1 VALUES (8,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1);
57
UPDATE test.t1 set x034 = 50 where bit3 = b'000000';
58
UPDATE test.t1 set VNotSupp = 33 where bit1 = b'0';
59
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
61
ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
62
oSupp sSuppD GSuppDf VNotSupp x034
71
SELECT hex(bit1) from test.t1 ORDER BY bit1;
81
SELECT hex(bit2) from test.t1 ORDER BY bit2;
91
SELECT hex(bit3) from test.t1 ORDER BY bit3;
101
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
103
ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
104
oSupp sSuppD GSuppDf VNotSupp x034
113
SELECT hex(bit1) from test.t1 ORDER BY bit1;
123
SELECT hex(bit2) from test.t1 ORDER BY bit2;
133
SELECT hex(bit3) from test.t1 ORDER BY bit3;
143
CREATE TABLE test.t2 (a INT, b BIT(1));
144
INSERT INTO test.t2 VALUES (1, b'0');
145
INSERT INTO test.t2 VALUES (1, b'1');
146
UPDATE test.t2 SET a = 2 WHERE b = b'1';
147
CREATE TABLE test.t3 (a INT, b INT);
148
INSERT INTO test.t3 VALUES (1, NULL);
149
INSERT INTO test.t3 VALUES (1, 0);
150
UPDATE test.t3 SET a = 2 WHERE b = 0;
151
SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
155
SELECT * FROM test.t3 ORDER BY a,b;
159
SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
163
SELECT * FROM test.t3 ORDER BY a,b;
167
DROP TABLE IF EXISTS test.t1;
168
DROP TABLE IF EXISTS test.t2;
169
DROP TABLE IF EXISTS test.t3;