By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
create table t(a int, b char, key (a,b));
describe t;
Field | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|
a | 696e74 | YES | MUL | null | |
b | 63686172283129 | YES | null |
SHOW INDEXES FROM t
Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Visible | Expression |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
t | 1 | a | 1 | a | A | 0 | null | null | YES | BTREE | YES | null | ||
t | 1 | a | 2 | b | A | 0 | null | null | YES | BTREE | YES | null |