I\'d like to show DataDictionary for entire tables in database.
SHOW COLUMNS
FROM `MyDataBase`.`MyTables`
WHERE IN ( SELECT TABLE_NAME
FROM info
Usually I prefer to take this with multiple DESC
. I feel SHOW COLUMNS
is bit slower than DESC table_name
.
So if want to get all the columns in some databases
SHOW TABLES FROM DB_NAME
DESC table_name
In the same way, SHOW INDEXES
is slower when compared to SHOW CREATE TABLE
if you just want to see the indexes on a table