首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
WHY42
搜索
用户菜单
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁MySQL:导出数据字典”︁的源代码
←
MySQL:导出数据字典
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<source lang="sql"> select t.table_schema as db_name, t.table_name, (case when t.table_type = 'BASE TABLE' then 'table' when t.table_type = 'VIEW' then 'view' else t.table_type end) as table_type, c.column_name, c.column_type, c.column_default, c.column_key, c.is_nullable, c.extra, c.column_comment from information_schema.tables as t inner join information_schema.columns as c on t.table_name = c.table_name and t.table_schema = c.table_schema where t.table_type in('base table', 'view') and t.table_schema like '%' and t.TABLE_SCHEMA = 'xx_db' order by t.table_schema, t.table_name, c.ordinal_position </source> [[Category:Database]]
返回
MySQL:导出数据字典
。