晒单是什么意思| 孕期什么时候补充dha| 四月什么星座| 酱瓜是什么瓜| 手足情深什么意思| ppb是什么单位| 血脂和血糖有什么区别| 河豚是什么意思| 棕色是什么颜色| 武松是什么生肖| 乙酰氨基酚片是什么药| by是什么意思| 紫涵女装属于什么档次| 零点是什么意思| 什么水什么什么| 114514什么意思| 咕噜是什么意思| 驴板肠是什么部位| 4个火念什么| 女方起诉离婚需要什么证件| 什么叫介入手术| 马桶为什么会堵| 高挑是什么意思| 什么东西补铁效果好而且最快| 食色性也是什么意思| 肾结水是什么原因造成的| 饕餮长什么样子| 大便出血吃什么药| 住房公积金缴存基数是什么意思| 9月28是什么星座| 深圳少年宫有什么好玩的| 老流鼻血是什么原因引起的| 八月一号什么星座| 月经流的是什么血| 什么是假声| 口我是什么意思| 明前茶和明后茶有什么区别| 核黄素是什么| 血热吃什么药效果好| 学习是什么| 多喝水有什么好处坏处| 一级医院是什么医院| 男性阴虱用什么药最好| 迪根是什么药| 什么东西养胃又治胃病| 经常想睡觉是什么原因| 吃饭的时候恶心想吐是什么原因| 羊胎素是什么| 人间四月芳菲尽的尽是什么意思| 俄罗斯被称为什么| 云南什么族| 桫椤是什么植物| 黄花菜都凉了是什么意思| 文牍是什么意思| 怀孕梦到蛇预示着什么| 喉软骨发育不良有什么症状| ct检查什么| 东莞有什么好玩的地方| 叩首是什么意思| 存是什么生肖| 杀了神经的牙为什么还疼| 什么的什么是什么的伞| 嗓子干疼是什么原因| 山楂和什么相克| 毒龙钻是什么| ds什么意思| 脉涩是什么意思| 排卵是什么| karen是什么意思| 糖尿病人早餐吃什么好| 花甲炒什么配菜好吃| 为什么拉屎会出血| 伤风胶囊又叫什么| 牙龈充血是什么原因| 收割是什么意思| 发心是什么意思| 梦见自己丢钱了什么征兆| 一直放臭屁是什么原因| 职务是什么意思| hpv59阳性是什么意思| 手心发热吃什么药最好| 正厅级是什么级别| tips什么意思| 脂蛋白是什么意思| u型枕有什么作用| 宋小宝得了什么病| 否命题和命题的否定有什么区别| 梅核气西医叫什么| 什么眼型最好看| 2025年是什么命| 为什么说黑鱼是鬼| 规律宫缩是什么感觉| 巫山云雨是什么意思| 蛋白质高是什么原因| 狗狗气喘吃什么药| 龙是什么意思| 爱出油的人身体缺什么| 蓝天白云是什么意思| 红玫瑰的花语是什么| 字字珠玑什么意思| 慌张的近义词是什么| 头发一半白一半黑是什么原因| 八卦中代表雷的卦象叫什么| 咳嗽有白痰吃什么药最好| 仓鼠为什么吃自己的孩子| 沉香有什么作用| 5月23日是什么星座| iabp医学上是什么意思| 假牙什么材质的最好| 心气不足是什么意思| 红鸾是什么意思| 腿上有白色条纹是什么| 苦瓜泡水喝有什么功效| 生物包括什么| 93属什么生肖| 红红的什么| 什么蜘蛛有毒| 不要问为什么| 膝盖疼痛什么原因| 糖醋鱼用什么鱼| 靶器官是什么意思| 入肉是什么字| mg是什么| 长胸毛的男人代表什么| 定坤丹适合什么人吃| 胆碱酯酶偏高说明什么| 心肌病是什么病严重吗| 萎缩性胃炎吃什么药能治好| 咳嗽有白痰一直不好是什么原因| 直白是什么意思| cmr医学中什么意思| 八仙过海是什么意思| 心肌炎是什么症状| 婕字五行属什么| 小海绵的真名叫什么| 左侧卵巢无回声是什么意思| 走水是什么意思| 偏激是什么意思| 4月出生是什么星座| 脾胃不好吃什么食物好| 钛对人体有什么好处| 快乐大本营为什么停播| 脱氢酶高是什么原因| 历久弥新的意思是什么| 打激素有什么副作用| 恋足癖是什么意思| 韶关有什么特产| 桂皮是什么| 什么颜色加什么颜色等于白色| 有出息是什么意思| 过敏性荨麻疹吃什么药| 什么是口爆| 医学pr是什么意思| 神经元特异性烯醇化酶是什么意思| 排尿困难是什么原因男性| 老年人骨质疏松吃什么钙片好| 弱水三千是什么意思| d2聚体高是什么意思| 孩子一直咳嗽不好是什么原因| 保教费是什么意思| 甄嬛传什么时候拍的| 为什么糙米越吃血糖越高| 护理专业主要学什么| 什么的照射| 脸发黄是什么原因| 绿茶有什么功效| 70年属什么生肖| 女人喝劲酒有什么好处| 蜻蜓为什么点水| 元旦送什么礼物好| 咳嗽吃什么药| 月经调理吃什么好| 致意是什么意思| 雾化是什么意思| 隐血是什么意思| 山海经是什么| 药学是什么| 内膜增生是什么意思| 湛江有什么好吃的| 血脂高不能吃什么食物| 皮肤痒用什么药最好| 犹怜是什么意思| 为什么会全身酸痛| 什么时候洗头是最佳时间| 为什么喝茶会睡不着| 梦见别人受伤流血是什么预兆| 云代表什么动物| 什么病人要补氯化钾呢| 胸口堵得慌是什么原因| 身上没力气没劲是什么原因| ctc是什么| pm是什么职位| 子宫外怀孕有什么症状| 妊娠高血压什么症状| 背后长痘是什么原因| 心阳虚吃什么中成药| 什么降血压效果最好| 五联什么时候打| 夏天怕热冬天怕冷是什么体质| 神经外科和神经内科有什么区别| 信必可为什么轻微哮喘不能用| 拉肚子什么原因造成的| 挚爱适合用在什么人| 心脏病是什么原因引起的| 定情信物是什么意思| 指鼻试验阳性代表什么| 肝虚火旺吃什么中成药| 四季如春是什么生肖| 什么照片看不出照的是谁| 寡妇年是什么意思| 什么原因造成糖尿病| 黑木耳是什么意思| 酒量越来越差什么原因| 7月26日是什么日子| 眼皮跳吃什么药| 唐僧姓什么| ao是什么意思| 洗面奶和洁面乳有什么区别| 淋巴结肿大看什么科室最好| 亚铁是什么| 憋不住尿什么原因| 脚底冰凉是什么原因| 10年什么婚| 两岁宝宝拉肚子吃什么药| 羸弱什么意思| 脉搏高是什么原因| 桓是什么意思| mama是什么意思| 吃什么对胃好| 轻度脂肪肝什么意思| 女生长胡子是什么原因| 什么是肾阴虚和肾阳虚| 路征和景甜什么关系| 皮脂腺囊肿挂什么科| 1208是什么星座| 太监和宫女对食是什么意思| 鱼胶是鱼的什么部位| 沙虫是什么| 梦见上班迟到什么意思| 2001年属蛇五行属什么| 经期喝什么茶好| 谷丙转氨酶偏高说明什么原因| 梦见来月经是什么意思| 守株待兔是什么意思| 北京立冬吃什么| 什么鸟一生只有一个伴侣| ua医学上是什么意思| 去侍庙有什么禁忌| 木耳不能和什么食物一起吃| 梦见生女孩是什么征兆| 属兔配什么属相最好| 心电图异常q波是什么意思| 脚肿是什么原因| 腹泻挂什么科| 白细胞偏高有什么危害| 什么叫变应性鼻炎| 女性脂肪率偏高说明什么| 手麻是什么病的预兆| 施食是什么意思| 熙熙攘攘什么意思| 用什么药材泡酒最好| 侃侃而谈是什么意思| 手发抖吃什么药| 唐玄宗为什么叫唐明皇| 百度Jump to content

地方养犬管理规定形同虚设 文明守法养犬有多难

From Wikipedia, the free encyclopedia
Relation, tuple, and attribute represented as table, row, and column respectively
百度 新车的悬挂用的是前麦弗逊+后多连杆式的独立悬挂,虽然从结构上看,它的类型还是以偏向舒适性为主,但实际的表现却给我啪啪打脸,因为我在此之前,没有开过一款像10代雅阁这样,拥有如此扎实底盘,优异路感的本田车型,说白了它能让我不自觉的想把车开快,去体验驾驶的乐趣。

In database theory, a relation, as originally defined by E. F. Codd,[1] is a set of tuples (d1,d2,...,dn), where each element dj is a member of Dj, a data domain. Codd's original definition notwithstanding, and contrary to the usual definition in mathematics, there is no ordering to the elements of the tuples of a relation.[2][3] Instead, each element is termed an attribute value. An attribute is a name paired with a domain (nowadays more commonly referred to as a type or data type). An attribute value is an attribute name paired with an element of that attribute's domain, and a tuple is a set of attribute values in which no two distinct elements have the same name. Thus, in some accounts, a tuple is described as a function, mapping names to values.

A set of attributes in which no two distinct elements have the same name is called a heading. It follows from the above definitions that to every tuple there corresponds a unique heading, being the set of names from the tuple, paired with the domains from which the tuple elements' domains are taken. A set of tuples that all correspond to the same heading is called a body. A relation is thus a heading paired with a body, the heading of the relation being also the heading of each tuple in its body. The number of attributes constituting a heading is called the degree, which term also applies to tuples and relations. The term n-tuple refers to a tuple of degree n (n ≥ 0).

E. F. Codd used the term "relation" in its mathematical sense of a finitary relation, a set of tuples on some set of n sets S1,S2,....,Sn.[4] Thus, an n-ary relation is interpreted, under the Closed-World Assumption, as the extension of some n-adic predicate: all and only those n-tuples whose values, substituted for corresponding free variables in the predicate, yield propositions that hold true, appear in the relation.

A heading paired with a set of constraints defined in terms of that heading is called a relation schema. A relation can thus be seen as an instantiation of a relation schema if it has the heading of that schema and it satisfies the applicable constraints.

Sometimes a relation schema is taken to include a name.[5][6] A relational database definition (database schema, sometimes referred to as a relational schema) can thus be thought of as a collection of named relation schemas.[7][8]

In implementations, the domain of each attribute is effectively a data type[9] and a named relation schema is effectively a relation variable (relvar for short).

In SQL, a database language for relational databases, relations are represented by tables, where each row of a table represents a single tuple, and where the values of each attribute form a column.

Examples

[edit]

Below is an example of a relation having three named attributes: 'ID' from the domain of integers, and 'Name' and 'Address' from the domain of strings:

ID (Integer) Name (String) Address (String)
102 Yon Naha, Okinawa
202 Nil Sendai, Miyagi
104 Murata Makoto Kumamoto, Kumamoto
152 Matsumoto Yukihiro Okinawa, Okinawa

A predicate for this relation, using the attribute names to denote free variables, might be "Employee number ID is known as Name and lives at Address". Examination of the relation tells us that there are just four tuples for which the predicate holds true. So, for example, employee 102 is known only by that name, Akin, and does not live anywhere else but in Naha, Okinawa. Also, apart from the four employees shown, there is no other employee who has both a name and an address.

Under the definition of body, the tuples of a body do not appear in any particular order - one cannot say "The tuple of 'Murata Makoto' is above the tuple of 'Matsumoto Yukihiro'", nor can one say "The tuple of is the first tuple." A similar comment applies to the rows of an SQL table.

Under the definition of heading, the attributes of an element do not appear in any particular order either, nor, therefore do the elements of a tuple. A similar comment does not apply here to SQL, which does define an ordering to the columns of a table.

Relation variables

[edit]

A relational database consists of named relation variables (relvars) for the purposes of updating the database in response to changes in the real world. An update to a single relvar causes the body of the relation assigned to that variable to be replaced by a different set of tuples. Relvars are classified into two classes: base relation variables and derived relation variables, the latter also known as virtual relvars but usually referred to by the short term view.

A base relation variable is a relation variable which is not derived from any other relation variables. In SQL the term base table equates approximately to base relation variable.

A view can be defined by an expression using the operators of the relational algebra or the relational calculus. Such an expression operates on one or more relations and when evaluated yields another relation. The result is sometimes referred to as a "derived" relation when the operands are relations assigned to database variables. A view is defined by giving a name to such an expression, such that the name can subsequently be used as a variable name. (Note that the expression must then mention at least one base relation variable.)

By using a Data Definition Language (DDL), it is able to define base relation variables. In SQL, CREATE TABLE syntax is used to define base tables. The following is an example.

CREATE TABLE List_of_people (
 ID INTEGER,
 Name CHAR(40),
 Address CHAR(200),
 PRIMARY KEY (ID)
)

The Data Definition Language (DDL) is also used to define derived relation variables. In SQL, CREATE VIEW syntax is used to define a derived relation variable. The following is an example.

CREATE VIEW List_of_Okinawa_people AS (
 SELECT ID, Name, Address
  FROM List_of_people
  WHERE Address LIKE '%, Okinawa'
)

See also

[edit]

References

[edit]
  1. ^ E. F. Codd (Oct 1972). "Further normalization of the database relational model". Data Base Systems. Courant Institute: Prentice-Hall. ISBN 013196741X. R is a relation on these n domains if it is a set of elements of the form (d1, d2, ..., dn) where dj ∈ Dj for each j=1,2,...,n.
  2. ^ C.J. Date (May 2005). Database in Depth. O'Reilly. p. 42. ISBN 0-596-10012-4. ... tuples have no left-to-right ordering to their attributes ...
  3. ^ E.F. Codd (1990). The Relational Model for Database Management, Version 2. Addison-Wesley. p. 3. ISBN 0-201-14192-2. One reason for abandoning positional concepts altogether in the relations of the relational model is that it is not at all unusual to find database relations, each of which has as many as 50, 100, or even 150 columns.
  4. ^ Codd, Edgar F (June 1970). "A Relational Model of Data for Large Shared Data Banks" (PDF). Communications of the ACM. 13 (6): 377–87. doi:10.1145/362384.362685. The term relation is used here in its accepted mathematical sense
  5. ^ Jeffrey D. Ullman (1989). Principles of Database and Knowledge-Base Systems. Jeffrey Ullman. pp. 410–. Retrieved 28 November 2012.
  6. ^ Dennis Elliott Shasha; Philippe Bonnet (2003). Database Tuning: Principles, Experiments, and Troubleshooting Techniques. Morgan Kaufmann. p. 124. ISBN 978-1-55860-753-8.
  7. ^ Peter Rob; Carlos Coronel, Peter Rob (2009). Database Systems: Design, Implementation, and Management. Cengage Learning. pp. 190–. ISBN 978-1-4239-0201-0. Retrieved 28 November 2012.
  8. ^ T. A. Halpin; Antony J. Morgan (2008). Information Modeling and Relational Databases. Morgan Kaufmann. pp. 772–. ISBN 978-0-12-373568-3. Retrieved 28 November 2012.
  9. ^ Michael F. Worboys (1995). Gis: A Computing Perspective. Taylor & Francis. pp. 57–. ISBN 978-0-7484-0065-2. Retrieved 22 November 2012.
什么如镜 11.2是什么星座 什么样的女人最旺夫 抗体高是什么意思 透支是什么意思
sahara是什么牌子 眼开大财主是什么生肖 腹泻吃什么好 脚后跟疼痛什么原因 喉咙里老是有痰是什么原因
多出汗是什么原因 圭是什么意思 牙囊肿是什么病严重吗 bb粥指的是什么意思 送礼送什么水果
lining是什么意思 喷塑工是干什么的 流弹是什么意思 冷萃是什么意思 花胶是什么鱼的鱼肚
维密是什么意思hcv8jop4ns2r.cn 酉什么意思hcv8jop2ns6r.cn 右手小指戴戒指什么意思hcv8jop6ns9r.cn 酸梅汤不能和什么一起吃hcv7jop9ns9r.cn 耳鸣是什么原因引起的hcv9jop1ns1r.cn
企鹅代表什么生肖weuuu.com 女人大腿内侧黑是什么原因引起的cj623037.com 鹅喜欢吃什么草hcv8jop9ns2r.cn 最不干净的动物是什么生肖hcv7jop4ns5r.cn 大姑姐是什么意思hcv8jop9ns8r.cn
天珠有什么作用与功效imcecn.com 单核细胞是什么hcv9jop8ns2r.cn 血红蛋白偏低吃什么补hcv8jop1ns6r.cn 手指麻木是什么原因hcv9jop6ns6r.cn 1922年属什么生肖hcv9jop1ns5r.cn
紧急避孕药什么时候吃最好hcv9jop1ns2r.cn 哪吒他妈叫什么名字bjhyzcsm.com 10月29号是什么星座hcv9jop0ns8r.cn ap是什么hcv9jop6ns7r.cn 椰子鞋是什么牌子hcv9jop2ns4r.cn
百度