Con la sintaxis SELECT PROCEDURE ANALYSE podemos obtener la respuesta de un query con los datos optimos en base a la consulta que hicimos y los datos presentes en la tabla, aca a un ejemplo:
MariaDB [training]> select * from soccer_teams procedure analyse (); +-----------------------------------+--------------+------------+------------+------------+------------------+-------+-------------------------+--------+-------------------------------- ----------+ | Field_name | Min_value | Max_value | Min_length | Max_length | Empties_or_zeros | Nulls | Avg_value_or_avg_length | Std | Optimal_fieldtype | +-----------------------------------+--------------+------------+------------+------------+------------------+-------+-------------------------+--------+-------------------------------- ----------+ | training.soccer_teams.id | 1 | 2 | 1 | 1 | 0 | …[Lea más]