我不明白,
VIEW定义中基础表的含义是什么,
A view is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the view.
So, yes, you can update the data in a view providing you have the proper privileges to the underlying tables.
答案 0 :(得分:1)
将视图视为存储查询,对用户显示为常规表。实际上,视图之间的差别很小:
SELECT somefield, otherfield
FROM theview
以及在数据库级别实际发生的事情:
SELECT somefield, otherfield
FROM (
SELECT lots, of, useless,fields, somefield, otherfield
FROM underlying, tables
JOIN ...
) AS theview
视图使您无需每次都编写子查询,因此在这方面可以节省时间。但是,视图的缺点是,根据底层查询,如果您直接访问基础表,则可能无法对视图运行UPDATE / DELETE查询。
答案 1 :(得分:0)
表示您从中选择或联接以生成视图的表。在这种情况下,特别是字段列表中使用的那些。