none structure data in mysql
in mysql 5.7 , support store data in json type.
create table with virtual column.
1 | CREATE TABLE players ( |
1 | SHOW COLUMNS FROM `players`; |
prepare save progress
1 | -- check whether store procedure open |
1 | delimiter $$ |
test data, and try
1 | call insert_player(2000000); |
1 | EXPLAIN SELECT * FROM `players` WHERE `vname` = "xxx-990099" |
1 | CREATE INDEX `name_idx` ON `players`(`vname`); |
1 | EXPLAIN SELECT * FROM `players` WHERE `vname` = "xxx-990099" |