从视图中删除行会从基表

编程入门 行业动态 更新时间:2024-10-21 09:31:25
本文介绍了从视图中删除行会从基表-MySQL中删除行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

从视图中删除一行,是否会从创建该视图的基表中删除相应的行?我正在使用MySQL.

Deleting a row from a view, will it delete the appropriate rows from the base tables that the view was created upon? I am using MySQL.

推荐答案

是的,它将.唯一需要注意的是权限.

Yes, it will. The only thing to watch out for, is permissions.

引用官方文档

有些观点是可更新的.那是你 可以在诸如以下的语句中使用它们 UPDATE,DELETE或INSERT进行更新 基础表的内容. 为了使视图可更新,必须 是一对一的关系 视图中的行和中的行 基础表.也有 某些其他构成 查看不可更新.

Some views are updatable. That is, you can use them in statements such as UPDATE, DELETE, or INSERT to update the contents of the underlying table. For a view to be updatable, there must be a one-to-one relationship between the rows in the view and the rows in the underlying table. There are also certain other constructs that make a view nonupdatable.

更多推荐

从视图中删除行会从基表

本文发布于:2023-10-27 23:13:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1534814.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:行会   视图

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!