<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=MySQL%3A%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8</id>
	<title>MySQL:导出数据字典 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=MySQL%3A%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=MySQL:%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8&amp;action=history"/>
	<updated>2026-06-03T01:07:39Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=MySQL:%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8&amp;diff=1808&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​以“&lt;source lang=&quot;sql&quot;&gt; select t.table_schema as db_name,   t.table_name,   (case when t.table_type = &#039;BASE TABLE&#039; then &#039;table&#039;         when t.table_type = &#039;VIEW&#039; then &#039;...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=MySQL:%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E5%AD%97%E5%85%B8&amp;diff=1808&amp;oldid=prev"/>
		<updated>2016-11-08T09:12:37Z</updated>

		<summary type="html">&lt;p&gt;以“&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt; select t.table_schema as db_name,   t.table_name,   (case when t.table_type = &amp;#039;BASE TABLE&amp;#039; then &amp;#039;table&amp;#039;         when t.table_type = &amp;#039;VIEW&amp;#039; then &amp;#039;...”为内容创建页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
select t.table_schema as db_name,&lt;br /&gt;
  t.table_name,&lt;br /&gt;
  (case when t.table_type = &amp;#039;BASE TABLE&amp;#039; then &amp;#039;table&amp;#039;&lt;br /&gt;
        when t.table_type = &amp;#039;VIEW&amp;#039; then &amp;#039;view&amp;#039;&lt;br /&gt;
        else t.table_type&lt;br /&gt;
   end) as table_type,&lt;br /&gt;
   c.column_name,&lt;br /&gt;
   c.column_type,&lt;br /&gt;
   c.column_default,&lt;br /&gt;
   c.column_key,&lt;br /&gt;
   c.is_nullable,&lt;br /&gt;
   c.extra,&lt;br /&gt;
   c.column_comment&lt;br /&gt;
from information_schema.tables as t&lt;br /&gt;
inner join information_schema.columns as c&lt;br /&gt;
on t.table_name = c.table_name&lt;br /&gt;
and t.table_schema = c.table_schema&lt;br /&gt;
where t.table_type in(&amp;#039;base table&amp;#039;, &amp;#039;view&amp;#039;)&lt;br /&gt;
and t.table_schema like &amp;#039;%&amp;#039;&lt;br /&gt;
and t.TABLE_SCHEMA = &amp;#039;xx_db&amp;#039;&lt;br /&gt;
order by t.table_schema, t.table_name, c.ordinal_position&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Database]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
</feed>