dousou1878 2016-10-23 12:49
浏览 45

MySQL DBMS视图处理

I understand MySQL views' usage, algorithms, advantage and disadvantage .. etc.

The only thing that I can't understand is How does MySQL DBMS process the views and update the view's data?

For example:-

We have three tables T1, T2 & T3 .. and We have a view called V1 which collects data from the three table, and a query called Q1 which select some data from V1

  • Assumption #1 (All is executed at once, the View first then the Query):

    Q1 is executed, so V1 is updated first then the result returns.

  • Assumption #2 (The view is updated after any transaction is done on the related tables)

    Insertion or Deletion transaction is executed on T2, V1 is updated, and anytime Q1 is executed the result returns from V1 (without updating V1, as in this case it's supposed to be updated all the times).

These are my assumptions, Can anybody clear this point for me, How does DBMS handle views?

Thank you so much

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
    • ¥15 微信会员卡接入微信支付商户号收款
    • ¥15 如何获取烟草零售终端数据
    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?