展示所有表名/注释
select table_name,table_comment from information_schema.tables where table_schema = database();
展示单个表里所有字段信息
select COLUMN_NAME, COLUMN_COMMENT,COLUMN_DEFAULT,IS_NULLABLE,COLUMN_TYPE,COLUMN_KEY,EXTRA from information_schema.columns where table_schema =database() and table_name = '<table_name>';
索引
show keys from <table_name>;