
andryosribeiro
(usa Red Hat)
Enviado em 06/12/2021 - 12:38h
Boa tarde amigos, como estão?
Estou com um erro ao executar este comando, mas não estou entendendo o motivo, alguém poderia me ajudar?
SELECT b.index_schema as db, b.table_name as table, b.colum_name, b.index_name, b.index_type, b.seq_in_index, b.collation, b.cardinality, a.table_name, round((('data_length + index_length') / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES as a, information_schema.STATISTICS as b WHERE b.table_schema = 'mysql' and b.table_name = a.table_name order by (data_length + index_length) DESC;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table, b.colum_name, b.index_name, b.index_type, b.seq_in_index, b.collation, b.' at line 1