CREATETABLE t1 (
idintunsignedNOTNULL auto_increment,
a intunsignedNOTNULLDEFAULT0,
b intunsignedNOTNULLDEFAULT0,
c intunsignedNOTNULLDEFAULT0,
PRIMARY KEY(id),
KEY abc (a, b, c) USING BTREE
);
(1). SELECT * FROM t1 WHERE a=3AND b=5AND c=4;
(2). SELECT * FROM t1 WHERE c=4AND b=6AND a=3;
(3). SELECT * FROM t1 WHERE a=3AND c=7;
(4). SELECT * FROM t1 WHERE a=3AND b>7AND c=3;
(5). SELECT * FROM t1 WHERE b=3AND c=4;
(6). SELECT * FROM t1 WHERE a>4AND b=7AND c=9;
(7). SELECT * FROM t1 WHERE a=3ORDERBY b;
(8). SELECT * FROM t1 WHERE a=3ORDERBY c;
(9). SELECT * FROM t1 WHERE b=3ORDERBY a;