a型rhd阳性是什么意思| crp高是什么意思| 破处是什么感觉| 左侧卵巢囊性包块是什么意思| 紫砂壶适合泡什么茶| 着相什么意思| 男人喝红糖水有什么好处| 肠胃镜挂什么科| 糖尿病人早餐吃什么好| 脑梗不能吃什么东西| 发生火灾时的正确做法是什么| 狗狗打喷嚏流鼻涕怎么办吃什么药| 长智齿意味着什么| 手脚脱皮是什么原因导致的| 干净的反义词是什么| 湿寒吃什么中成药| 什么是飞蚊症| 辟支佛是什么意思| 为什么清真不吃猪肉| 游泳对身体有什么好处| 什么照镜子里外不是人| 粘土是什么土| 芥子是什么| 刘邦和刘备什么关系| 什么是文爱| 条件致病菌是什么意思| 经期适合吃什么食物| 舌头起泡吃什么药| 小孩感冒挂什么科| 5月30号是什么星座| 光圈是什么| 什么时候去西藏旅游最好| 公务员是干什么的| 胎儿生物物理评分8分什么意思| 日安什么意思| 品是什么意思| 什么是寓言故事| 怀孕做糖耐是检查什么| 什么药可以催月经来| 5月3日什么星座| 暗戳戳是什么意思| 什么样的枫叶| 什么是碱性食物| 吃什么排毒最快| mrn是什么意思| 香草是什么意思| 三言两语是什么意思| 不怕热是什么体质| 促狭一笑是什么意思| 脆鱼是什么鱼| 为什么会突然长痣| 为什么记忆力很差| 中央电视台台长是什么级别| 刀口力念什么| 葡萄糖阳性是什么意思| 牙疼吃什么药| 肺主什么| 人大是干什么的| 大自然的馈赠什么意思| 咨询是什么意思| 什么粥减肥效果好| 喝酒伤什么| 21度穿什么衣服| 柯字五行属什么| 梦见做春梦是什么意思| 脂肪最终被消化成什么| 心路历程是什么意思| 三月三日是什么星座| 管型尿是什么意思| 乳房边缘一按就疼是什么原因| 认知是什么| 10月16日什么星座| 吉兆什么意思| 肺部炎症用什么药最好| 六合什么意思| 重度肠化是什么意思| 梦见烧纸钱是什么意思| 糖尿病可以喝什么饮料| 怀孕六个月出血是什么原因| 心电图窦性心律是什么意思| 看望病人买什么水果| 留个念想是什么意思| 脂溢性脱发是什么意思| 酸菜是什么菜做的| 胆酷醇高有什么危害| 7月6日是什么节日| gem是什么意思| au是什么货币| 特首是什么意思| 双子座是什么星座| 马拉松pb是什么意思| 怀孕上火吃什么能降火| 小囡是什么意思| 什么牌子奶粉最好| 找对象什么最重要| 吐露是什么意思| 怀孕了用排卵试纸测会显示什么| sec是什么单位| 五月十七是什么星座| 白细胞多是什么原因| emoji是什么意思| 胆固醇高有什么症状| 感冒看什么科| 为什么舌头老是有灼烧感| 陈旧性骨折是什么意思| 无功无过是什么意思| 为什么会得疱疹| d2聚体高是什么原因| 一什么浮萍| 什么快递可以寄活物| 晚上喝牛奶有什么好处| 马踏飞燕什么意思| 什么的海洋| 勇往直前是什么意思| 父母是什么意思| 抑郁症是什么原因造成| 吃肝补什么| 为什么会孕酮低| egm是什么意思| 女性hpv阳性是什么意思| 美国是什么洲| 什么叫外阴白斑| 冉冉是什么意思| 茉字五行属什么| 脚指甲为什么变黑| 睾丸扭转是什么意思| 芸字五行属什么| 什么颜色衣服最防晒| 梦见做手术是什么意思| 甲虫吃什么| 柴火饭是什么意思| 容易长口腔溃疡是什么原因| 肾阴虚的表现是什么| 九寨沟在什么地方| 夏对什么| 骨折和断了有什么区别| 为什么七星瓢虫是益虫| 仰仗是什么意思| 女人吃善存有什么好处| 足跟痛挂什么科| 浑身疼是什么原因| 头疼恶心想吐是什么原因| 胆囊壁毛糙什么意思| 身上长扁平疣是什么原因造成的| 曦是什么意思| 根尖周炎吃什么药| 汉武帝是什么朝代| 韬的意思是什么| 尿潜血是什么病| 免疫球蛋白适合什么人| 缺维生素e有什么症状| 屁股沟疼是什么原因| dq是什么| 什么地响| 包可以加什么偏旁| 激素六项检查挂什么科| 集成灶什么品牌最好| 为什么会得白癜风| 巨石强森是什么人种| 梦见自己掉牙是什么意思| 74年属虎是什么命| 嘴唇发紫发黑是什么原因| 莲雾是什么水果| 皮蛋为什么能治口腔溃疡| 眼睛充血用什么眼药水最好| 女命带驿马是什么意思| 电子商务有限公司是做什么的| 什么吃蚊子| 法国用什么货币| 水钻是什么材质| swell是什么牌子| 胚胎是什么| 甲状腺结节什么原因引起的| 查过敏源挂什么科| 做爱时间短吃什么药| 丰富是什么意思| 女人吃桃子有什么好处| 想改名字需要什么手续| 胃疼想吐是什么原因| 三鹿奶粉现在叫什么| 情形是什么意思| 突然头晕冒虚汗什么原因| 白蜡烛代表什么| 摧枯拉朽是什么意思| 卵黄囊是什么| llbean是什么牌子| 灌肠是什么感觉| 惆怅是什么意思| 维生素b12是什么| 龟头炎是什么症状| 犹太是什么意思| 新手摆地摊卖什么好| 1907年属什么生肖| 广东省省长是什么级别| 长痘要忌口什么东西| 水能变成什么| 不是经期有少量出血是什么原因| 有机可乘是什么意思| 阿莫西林吃多了有什么副作用| 咖啡有什么功效| 虾和什么蔬菜搭配最好| 筋是什么组织| 肾结石什么不可以吃| 肚子特别疼是什么原因| 三颗星是什么军衔| 拔完牙吃什么消炎药| 坐月子可以吃什么菜| 西药是用什么材料做的| 茶歇是什么意思| 孕期用什么护肤品| 省公安厅副厅长是什么级别| 被蜱虫咬了挂什么科| 肾亏吃什么好| 阴历六月十五是什么日子| 血糖高吃什么蔬菜| 无舌苔是什么原因| leslie什么意思| 除日是什么意思| 什么东西能解酒| 蛋白尿是什么症状| 撸铁什么意思| 抵牾是什么意思| 梦见情敌什么预兆| apart是什么意思| 成服是什么意思| 梦见别人受伤流血是什么预兆| 纪梵希属于什么档次| 石斛与什么搭配最好| 小孩感冒挂什么科| 什么是御姐| 总胆红素高是怎么回事有什么危害| 人死之前为什么会拉屎| 海豹油有什么作用| 程咬金的老婆叫什么| 小腿抽筋是什么原因引起的| 中暑的症状是什么| 黄泉是什么意思| 早孕试纸和验孕棒有什么区别| 感冒喝什么粥| 疾控中心属于什么单位| 什么的玉米| 80是什么意思| 四五月份是什么星座| 有时候会感到莫名的难过是什么歌| 车顶放饮料什么意思| 做包子用什么面粉| 77年五行属什么| 双生痣是什么意思| 烟酰胺有什么用| 洗面奶和洁面乳有什么区别| 九寨沟属于什么市| 骨盐量偏低是什么意思| 搞破鞋什么意思| 胃酸是什么原因造成的| 黄豆煲汤搭配什么最好| 7月17日是什么日子| 乳腺增生是什么症状| 女性多囊是什么意思| 尿蛋白高不能吃什么食物| 剪什么样的发型好看| 湿疹用什么药| 甜字五行属什么| 技校是什么学历| 什么是正颌手术| 百度Jump to content

神舟 战神 K680S-i7 D1图片

From Wikipedia, the free encyclopedia
百度 新中国成立后的国学热于上世纪80、90年代迎来第一次高潮,目前已进入第二个高潮期。

In a database, a view is the result set of a stored query that presents a limited perspective of the database to a user.[1] This pre-established query command is kept in the data dictionary. Unlike ordinary base tables in a relational database, a view does not form part of the physical schema: as a result set, it is a virtual table[1] computed or collated dynamically from data in the database when access to that view is requested. Changes applied to the data in a relevant underlying table are reflected in the data shown in subsequent invocations of the view.

Views can provide advantages over tables:

  • Views can represent a subset of the data contained in a table. Consequently, a view can limit the degree of exposure of the underlying tables to the outer world: a given user may have permission to query the view, while denied access to the rest of the base table.[2]
  • Views can join and simplify multiple tables into a single virtual table.[2]
  • Views can act as aggregated tables, where the database engine aggregates data (sum, average, etc.) and presents the calculated results as part of the data.
  • Views can hide the complexity of data. For example, a view could appear as Sales2020 or Sales2021, transparently partitioning the actual underlying table.
  • Views take very little space to store; the database contains only the definition of a view, not a copy of all the data that it presents.
  • Views structure data in a way that classes of users find natural and intuitive.[2]

Just as a function (in programming) can provide abstraction, so can a database view. In another parallel with functions, database users can manipulate nested views, thus one view can aggregate data from other views. Without the use of views, the normalization of databases above second normal form would become much more difficult. Views can make it easier to create lossless join decomposition.

Just as rows in a base table lack any defined ordering, rows available through a view do not appear with any default sorting. A view is a relational table, and the relational model defines a table as a set of rows. Since sets are not ordered — by definition — neither are the rows of a view. Therefore, an ORDER BY clause in the view definition is meaningless; the SQL standard (SQL:2003) does not allow an ORDER BY clause in the subquery of a CREATE VIEW command, just as it is refused in a CREATE TABLE statement. However, sorted data can be obtained from a view, in the same way as any other table — as part of a query statement on that view. Nevertheless, some DBMS (such as Oracle Database) do not abide by this SQL standard restriction.

Read-only vs. updatable views

[edit]

Views can be defined as read-only or updatable. If the database system can determine the reverse mapping from the view schema to the schema of the underlying base tables, then the view is updatable. INSERT, UPDATE, and DELETE operations can be performed on updatable views. Read-only views do not support such operations because the DBMS cannot map the changes to the underlying base tables. A view update is done by key preservation.

Some systems support the definition of INSTEAD OF triggers on views. This technique allows the definition of other logic for execution in place of an insert, update, or delete operation on the views. Thus database systems can implement data modifications based on read-only views. However, an INSTEAD OF trigger does not change the read-only or updatable property of the view itself.

Materialized views

[edit]

Various database management systems have extended the views from read-only subsets of data, particularly materialized views: pre-executed, non-virtual views commonly used in data warehousing. They give a static snapshot of the data and may include data from remote sources. The accuracy of a materialized view depends on the frequency of trigger mechanisms behind its updates.

Materialized views were introduced by Oracle Database, while IBM Db2 provides so-called "materialized query tables" (MQTs) for the same purpose. Microsoft SQL Server introduced in its 2000 version indexed views which only store a separate index from the table, but not the entire data. PostgreSQL implemented materialized views in its 9.3 release.

Equivalence

[edit]

A view is equivalent to its source query. When queries are run against views, the query is modified. For example, if there exists a view named accounts_view with the content as follows:

-- accounts_view:
-------------
SELECT name,
       money_received,
       money_sent,
       (money_received - money_sent) AS balance,
       address,
	   ...
  FROM table_customers c 
  JOIN accounts_table a 
    ON a.customer_id = c.customer_id

then the application could run a simple query such as:

-- Simple query
------------
SELECT name,
       balance
  FROM accounts_view

The RDBMS then takes the simple query, replaces the equivalent view, then sends the following to the query optimizer:

-- Preprocessed query:
------------------
SELECT name,
       balance
  FROM (SELECT name,
               money_received,
               money_sent,
               (money_received - money_sent) AS balance,
               address,
			    ...
          FROM table_customers c JOIN accounts_table a
               ON a.customer_id = c.customer_id        )

The optimizer then removes unnecessary fields and complexity (for example it is not necessary to read the address, since the parent invocation does not make use of it) and then sends the query to the SQL engine for processing.

See also

[edit]

References

[edit]
  1. ^ a b "25.5 Using Views". MySQL. Oracle. 2025-08-06. Archived from the original on 2025-08-06. Retrieved 2025-08-06. Views are stored queries that when invoked produce a result set. A view acts as a virtual table.
  2. ^ a b c Groff, James R.; Weinberg, Paul N. (1999). SQL: The Complete Reference (PDF). Osborne/McGraw-Hill. pp. 291–292. ISBN 0072118458.
二月十九是什么星座 一月8日是什么星座 尿素是什么肥料 吃什么水果变白 膝盖痛用什么药
大生化检查都包括什么项目 癫是什么意思 嘴唇裂口是什么原因 玹字五行属什么 忌日是什么意思
人生赢家什么意思 脖子上有肿块挂什么科 肝硬化有什么症状 骨质增生吃什么药好 制剂是什么意思
吃青提有什么好处 4月28日什么星座 梦见怀孕了是什么意思 喝生姜水有什么好处 吃完避孕药不能吃什么东西
尿有味是什么原因hcv9jop0ns9r.cn 六五年属什么hcv9jop6ns1r.cn 为什么晚上血压比白天高hcv8jop5ns7r.cn 身份证号码的数字代表什么意义hcv8jop4ns0r.cn 话少一般都是什么人hcv7jop6ns2r.cn
一个月来两次大姨妈是什么原因hcv9jop4ns8r.cn 杨枝甘露是什么做的hcv8jop9ns5r.cn 便血鲜红色无疼痛是什么原因hcv8jop6ns7r.cn 姓薄的读音是什么hcv8jop3ns5r.cn 夜晚睡不着觉什么原因hcv8jop8ns4r.cn
丁卡是什么药hcv9jop3ns9r.cn 后背发凉是什么原因hcv7jop5ns6r.cn 女性痔疮挂什么科室hcv8jop1ns9r.cn 哺乳期吃什么水果好huizhijixie.com 原是什么意思hcv8jop0ns2r.cn
有什么可以快速止痒的方法hcv9jop0ns6r.cn cco是什么意思hcv8jop6ns6r.cn 什么原因造成耳鸣hcv9jop5ns7r.cn 什么是格林巴利综合症hcv8jop6ns9r.cn 什么茶养胃又治胃病hcv8jop9ns4r.cn
百度