问其故的故是什么意思| 干咳无痰是什么原因引起的| 5s是什么意思| 银色山泉香水什么牌子| 车辆购置税什么时候交| other是什么意思| 发泥和发蜡有什么区别| 肝气郁结喝什么茶| 平衡液是什么| 膝盖疼痛什么原因| 宸字属于五行属什么| 颠勺是什么意思| gold什么意思| 桂花是什么颜色| 头脑灵活是什么生肖| 搬家 送什么| 什么颜色加什么颜色等于橙色| 扑热息痛又叫什么| 月经淋漓不尽什么原因| 幽门螺杆菌吃什么药最好| 什么是a货翡翠| 甲状腺回声不均匀什么意思| 二郎腿为什么叫二郎腿| 小孩缺锌吃什么补的快| 脊髓灰质炎是什么病| 风生水起是什么生肖| 冬瓜有什么功效和作用| 飞蚊症是什么原因造成的能治愈吗| 九头鸟是什么意思| 过敏期间不能吃什么东西| 血压高吃什么降压药| 身上有白斑块是什么原因造成的| 仪仗队是什么意思| 绚丽夺目的意思是什么| 胃镜挂什么科| 为什么榴莲那么贵| other是什么品牌| 给小孩买什么保险好| 外阴瘙痒是什么情况| 泞字五行属什么| 吃什么长高| 尼古拉斯是什么意思| 2001是什么年| 为什么医生说直肠炎不用吃药| 舌苔发紫是什么原因| 最好的大学是什么大学| 举足轻重是什么生肖| 夏天喝什么汤| 8月26号是什么星座| 痛风吃什么消炎药| 肾痛是什么原因| 透明隔间腔是什么意思| 豆浆和豆奶有什么区别| 口腔溃疡吃什么药好得快| 腋毛有什么作用| 包馄饨用猪肉什么部位| 前列腺增生吃什么药见效快| 尿频尿急尿不尽吃什么药效果最好| 尿蛋白2十吃什么药| 半夜鸡叫是什么征兆| 饿得快是什么原因| 伊朗用什么语言| 腰酸痛挂什么科| 缄默什么意思| 补办结婚证需要什么手续| 例假提前是什么原因| 受惊吓吃什么药| 怀孕肚子上长毛是什么原因| 局灶癌变是什么意思| 左侧头皮发麻是什么原因| 夏天喝什么茶比较好| 5月9号是什么星座| 清款是什么意思| 大姨夫是什么意思| 臭虫长什么样子图片| 想请假找什么理由好| 小孩便秘吃什么药| 牙痛吃什么药效果最好| 鹅吃什么食物| 牙龈肿痛吃什么药最好| 白细胞数目偏高是什么意思| 升结肠管状腺瘤是什么意思| 梦到怀孕生孩子是什么意思| 什么的夜晚| 胆固醇高挂什么科| 梦见孩子哭是什么意思| 东方不败练的什么武功| 老鼠人是什么意思| 四大皆空是指什么| 什么是流水| 梦见火是什么预兆| 生理期是什么| 银子发黄是什么原因| 壁报交流是什么意思| 墨西哥讲什么语言| 罹是什么意思| 恶心头晕是什么症状| 转氨酶是什么| 后背疼痛什么原因| 咖啡有什么营养| 干燥综合征挂什么科| 油嘴滑舌是什么意思| 夏天爱出汗是什么原因| 羊奶粉和牛奶粉有什么区别| 完美收官是什么意思| 瑜五行属什么| 心里空落落的是什么意思| 蚊子讨厌什么气味| 花中皇后是什么花| 做亲子鉴定需要什么材料| 顺风耳是什么意思| 子宫肌瘤吃什么| 南通有什么大学| 眼泡是什么意思| 男性染色体是什么| 血常规能检查出什么| epo是什么意思| 脚掌心发热是什么原因| 三铵复合肥是什么| 梦见爬山是什么预兆| 燃烧卡路里是什么意思| 易岗易薪是什么意思| 用什么可以解开所有的谜| 肖像是什么意思| 化疗后吃什么排毒最快| 牙齿发白是什么原因| 谷丙转氨酶偏高是什么意思| 阿司匹林肠溶片治什么病| 双身什么意思| 云南白药里面的保险子有什么用| 胃寒胃痛吃什么食物好| 16 5是什么码| 为什么手抖| 对乙酰氨基酚片是什么药| 爱豆是什么| 肝实质回声细密是什么意思| 网监是干什么的| 空调为什么不制冷| 胳膊上的花是打了什么疫苗| 多吃木耳有什么好处和坏处| 龙眼树上的臭虫叫什么| 气短是什么原因| 人为什么会有狐臭| 月经量少吃什么药调理| 什么是粉丝| 大陆去台湾需要什么手续| 阴囊湿疹用什么药效果最好| 为什么长白头发| 白内障是什么原因引起的| 酒量越来越差什么原因| 水光针是什么| 骨质硬化是什么意思| 弹性工作是什么意思| 男人梦见龙是什么征兆| 冻干粉是什么| 天门冬氨酸氨基转移酶是什么| 我靠是什么意思| 羊水穿刺是查什么的| 梦见抓甲鱼是什么意思| 卡密什么意思| 马拉松起源与什么有关| 颈动脉b超是检查什么| 茶叶有什么功效与作用| 如火如荼是什么意思| 卵巢多囊症是什么原因造成| 蜱虫的天敌是什么| 桂子是什么意思| vps是什么| 头晕耳鸣是什么原因引起的| 腰椎间盘突出不能吃什么食物| 舌头溃疡吃什么水果| 晚上睡觉磨牙是什么原因| 石蜡是什么东西| 高血压适合喝什么茶| 紫河车是什么东西| 什么是上升星座| 龙日冲狗煞南是什么意思| 如果你是什么那快乐就是什么| 左眼跳财是什么意思| 硅胶是什么材料做的| 无锡有什么好玩的| 李亚男为什么选王祖蓝| 男生小肚子疼是什么原因| 老打嗝是什么原因引起的| 淡定从容是什么意思| 阴虚什么意思| 尿常规3个加号什么意思| 神经外科和神经内科有什么区别| 情绪是什么| 冬瓜烧什么好吃| 卢靖姗是什么混血| wb是什么意思| 门前栽什么树最好| 叫床什么意思| 1月21号是什么星座| 什么样的肚子疼是癌| 低密度脂蛋白胆固醇高吃什么药| 肝左叶囊肿是什么意思| 男人喝红糖水有什么好处| 二级护理是什么意思| 四面楚歌是什么生肖| 蜈蚣最怕什么东西| 2004年是什么生肖| 膀胱充盈欠佳是什么意思| 代可可脂是什么| 尿酸高喝什么水最好| 月经血量少是什么原因| 什么东西养胃又治胃病| moi是什么意思| 现在有什么好的创业项目| 水滴石穿是什么变化| 什么是先兆流产| 消化不良吃什么食物| 发扬什么词语搭配| 大麦茶是什么做的| 慌张的反义词是什么| 吃什么降钾最快| 吃什么睡眠好的最快最有效| 石榴是什么生肖| 瘦人吃什么能长胖| 六月十八是什么星座| 奶酪是什么东西| 蒸米饭时加什么好吃| 人为什么怕死| 病毒感染吃什么药| uniqlo是什么牌子| 呻吟是什么意思| 氟斑牙是什么原因造成的| 得艾滋病的人有什么症状| 趋光性是什么意思| 怀孕第一个月吃什么对胎儿好| 梦见好多羊是什么意思| 手脱皮缺什么维生素| 包皮开裂是什么原因| 接吻要注意什么| 指甲空了是什么原因| 林彪为什么叛逃| 高血脂是什么原因引起的| 经期喝什么补气血| 蒲地蓝消炎片治什么病| 胆水是什么| 早上十点是什么时辰| 屁多且臭是什么原因| 清明是什么季节| 怀孕该吃什么补充营养| 什么是药学| 对线是什么意思| 七月上旬是什么时候| 福建人喜欢吃什么| professional是什么意思| 19岁属什么生肖| 小朋友口臭是什么原因| 红豆吃多了有什么坏处| 丹参有什么作用和功效| 81年属鸡的是什么命| 嗓子有痰是什么原因| 梅花代表什么象征意义| 皮肤属于什么系统| tiamo是什么意思| 鹰和隼有什么区别| 土豆发芽到什么程度不能吃| 胃有息肉的症状是什么| 生蚝有什么功效与作用| 入伏天是什么意思| 百度Jump to content

《朗读者》江一燕做公益 首次详谈广西巴马支教

From Wikipedia, the free encyclopedia
(Redirected from View (database))
百度 笔者认为,工会工作中的发展不平衡,主要包括以下方面。

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-05. Archived from the original on 2025-08-05. Retrieved 2025-08-05. 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.
嗓子痛吃什么消炎药 什么的遐想 七匹狼男装是什么档次 青团是用什么做的 马赛克是什么
奇经八脉指的是什么 劫持是什么意思 3月19是什么星座 什么食物含叶酸 烫伤后擦什么药好得快
西安香烟有什么牌子 为什么会长口腔溃疡的原因 无聊可以干什么 带状疱疹吃什么药好 单独粘米粉能做什么
扣字是什么意思 阔以是什么意思 大便带血丝是什么原因 孕妇缺营养吃什么补 雪碧喝多了有什么害处
心率过高是什么原因hcv8jop2ns9r.cn 海纳百川什么意思hcv8jop3ns9r.cn 万圣节是什么时候hcv8jop5ns7r.cn 纠结是什么意思hcv7jop6ns7r.cn 舍我其谁是什么意思hcv8jop6ns5r.cn
尿路感染看什么科室hcv7jop9ns7r.cn 流黄鼻涕是什么感冒hcv9jop3ns5r.cn 断桥是什么意思shenchushe.com 强悍是什么意思hcv8jop6ns5r.cn 竖起中指是什么意思hcv8jop9ns5r.cn
什么人不能念阿弥陀佛beikeqingting.com hiit是什么意思hcv8jop0ns6r.cn 澳门为什么叫澳门hcv8jop1ns5r.cn 共轭什么意思hcv7jop6ns5r.cn 任性是什么意思hcv9jop1ns6r.cn
柠檬吃多了有什么坏处hcv8jop5ns7r.cn 牙龈炎吃什么药最有效aiwuzhiyu.com 儿童抗o高会引起什么病hcv8jop0ns9r.cn 镁是什么hcv7jop5ns6r.cn 算什么男人歌词hcv9jop2ns5r.cn
百度