`TABLES`
WHERE
TABLE_SCHEMA = 'erp';
根据库名获取所有表名称和表说明
SELECT
TABLE_NAME,
TABLE_COMMENT
FROM...`TABLES`
WHERE
TABLE_SCHEMA = 'erp';
view:
根据库名获取所有的字段信息
SELECT
TABLE_SCHEMA AS '库名',
TABLE_NAME...COLUMNS`
WHERE
TABLE_SCHEMA = 'erp'
ORDER BY
TABLE_NAME,
ORDINAL_POSITION;
view:
根据库名获取所有的库和表字段的基本信息...SELECT
C.TABLE_SCHEMA AS '库名',
T.TABLE_NAME AS '表名',
T.TABLE_COMMENT AS '表注释',
C.COLUMN_NAME...*,t1.* FROM (select COLUMN_NAME as '字段',COLUMN_DEFAULT as '默认值',IS_NULLABLE as '允许为空',COLUMN_TYPE as