<legend id='AfEza'><style id='AfEza'><dir id='AfEza'><q id='AfEza'></q></dir></style></legend>
    <i id='AfEza'><tr id='AfEza'><dt id='AfEza'><q id='AfEza'><span id='AfEza'><b id='AfEza'><form id='AfEza'><ins id='AfEza'></ins><ul id='AfEza'></ul><sub id='AfEza'></sub></form><legend id='AfEza'></legend><bdo id='AfEza'><pre id='AfEza'><center id='AfEza'></center></pre></bdo></b><th id='AfEza'></th></span></q></dt></tr></i><div id='AfEza'><tfoot id='AfEza'></tfoot><dl id='AfEza'><fieldset id='AfEza'></fieldset></dl></div>

  • <small id='AfEza'></small><noframes id='AfEza'>

    <tfoot id='AfEza'></tfoot>
      <bdo id='AfEza'></bdo><ul id='AfEza'></ul>

      1. MySql 中的自动视图更新

        Automatic View Update in MySql(MySql 中的自动视图更新)

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

            <tbody id='p6POL'></tbody>

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

                1. 本文介绍了MySql 中的自动视图更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当底层表在 MySQL 中更新而不查询时,视图是否会自动更新?

                  Does the view get automatically updated when the underlying tables get updated in MySQL without querying?

                  进一步说明 - 如果我更新表,那么即使我没有在视图上运行任何查询,视图也会更新吗?

                  To further elaborate - if I update the table then does the view get updated even if I don't run any query on the view?

                  推荐答案

                  每次在视图上执行查询时,它都会获取当前在表中的数据 - 包括所有已提交的事务,但不包括那些 UPDATE 或 INSERT 查询尚未提交.

                  Every time you execute a query on the view, it will fetch the data currently in tables - included all committed transactions on it, but not those UPDATE or INSERT queries taht have still not been committed.

                  当然,一旦你得到了那个数据,它就不会再发送了.有触发器,但您的数据库客户端仍然必须查询视图数据.

                  but of course, once you have got that data, it will not send it again. There are triggers for that, but still your database client has to query the view data out.

                  再澄清一点:视图不存储(缓存)数据,它是一个逻辑结构,将始终查看底层表.

                  To clear up a bit more: View does not store (cache) the data, it is a logical structure and will always look into the underlying tables.

                  这篇关于MySql 中的自动视图更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 累计总和)
                  <legend id='ZAGC5'><style id='ZAGC5'><dir id='ZAGC5'><q id='ZAGC5'></q></dir></style></legend>

                2. <i id='ZAGC5'><tr id='ZAGC5'><dt id='ZAGC5'><q id='ZAGC5'><span id='ZAGC5'><b id='ZAGC5'><form id='ZAGC5'><ins id='ZAGC5'></ins><ul id='ZAGC5'></ul><sub id='ZAGC5'></sub></form><legend id='ZAGC5'></legend><bdo id='ZAGC5'><pre id='ZAGC5'><center id='ZAGC5'></center></pre></bdo></b><th id='ZAGC5'></th></span></q></dt></tr></i><div id='ZAGC5'><tfoot id='ZAGC5'></tfoot><dl id='ZAGC5'><fieldset id='ZAGC5'></fieldset></dl></div>
                3. <small id='ZAGC5'></small><noframes id='ZAGC5'>

                    <tbody id='ZAGC5'></tbody>

                      <tfoot id='ZAGC5'></tfoot>

                          • <bdo id='ZAGC5'></bdo><ul id='ZAGC5'></ul>