<small id='21mxy'></small><noframes id='21mxy'>

  • <legend id='21mxy'><style id='21mxy'><dir id='21mxy'><q id='21mxy'></q></dir></style></legend>

      <tfoot id='21mxy'></tfoot>

      1. <i id='21mxy'><tr id='21mxy'><dt id='21mxy'><q id='21mxy'><span id='21mxy'><b id='21mxy'><form id='21mxy'><ins id='21mxy'></ins><ul id='21mxy'></ul><sub id='21mxy'></sub></form><legend id='21mxy'></legend><bdo id='21mxy'><pre id='21mxy'><center id='21mxy'></center></pre></bdo></b><th id='21mxy'></th></span></q></dt></tr></i><div id='21mxy'><tfoot id='21mxy'></tfoot><dl id='21mxy'><fieldset id='21mxy'></fieldset></dl></div>
          <bdo id='21mxy'></bdo><ul id='21mxy'></ul>

        创建跨不同数据库的视图

        Creating view across different databases(创建跨不同数据库的视图)

            <tbody id='6LOZU'></tbody>

        1. <tfoot id='6LOZU'></tfoot>

          <small id='6LOZU'></small><noframes id='6LOZU'>

            <bdo id='6LOZU'></bdo><ul id='6LOZU'></ul>

              <legend id='6LOZU'><style id='6LOZU'><dir id='6LOZU'><q id='6LOZU'></q></dir></style></legend>

                1. <i id='6LOZU'><tr id='6LOZU'><dt id='6LOZU'><q id='6LOZU'><span id='6LOZU'><b id='6LOZU'><form id='6LOZU'><ins id='6LOZU'></ins><ul id='6LOZU'></ul><sub id='6LOZU'></sub></form><legend id='6LOZU'></legend><bdo id='6LOZU'><pre id='6LOZU'><center id='6LOZU'></center></pre></bdo></b><th id='6LOZU'></th></span></q></dt></tr></i><div id='6LOZU'><tfoot id='6LOZU'></tfoot><dl id='6LOZU'><fieldset id='6LOZU'></fieldset></dl></div>
                  本文介绍了创建跨不同数据库的视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我有数据库D1和数据库D2,以及D1表下的表T1数据库D2下的>T2,是否可以在MySQL数据库D2下创建T1的视图.如果是这样,你能告诉我语法吗?

                  If I have database D1 and database D2, and table T1 under database D1 and table T2 under database D2, is it possible to create a view of T1 under database D2 in MySQL. If so, can you show me the syntax.

                  两个数据库在同一台机器上.

                  Both the databases are on the same machine.

                  推荐答案

                  CREATE VIEW `D2`.`example` AS SELECT * FROM `D1`.`T1`;
                  

                  这篇关于创建跨不同数据库的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  MySQL cumulative sum grouped by date(按日期分组的 MySQL 累计总和)
                    <bdo id='UAR98'></bdo><ul id='UAR98'></ul>
                  • <i id='UAR98'><tr id='UAR98'><dt id='UAR98'><q id='UAR98'><span id='UAR98'><b id='UAR98'><form id='UAR98'><ins id='UAR98'></ins><ul id='UAR98'></ul><sub id='UAR98'></sub></form><legend id='UAR98'></legend><bdo id='UAR98'><pre id='UAR98'><center id='UAR98'></center></pre></bdo></b><th id='UAR98'></th></span></q></dt></tr></i><div id='UAR98'><tfoot id='UAR98'></tfoot><dl id='UAR98'><fieldset id='UAR98'></fieldset></dl></div>

                      <tbody id='UAR98'></tbody>
                    <tfoot id='UAR98'></tfoot>

                            <legend id='UAR98'><style id='UAR98'><dir id='UAR98'><q id='UAR98'></q></dir></style></legend>

                            <small id='UAR98'></small><noframes id='UAR98'>