- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Extending Relational Databases.ppt
Complex Types and SQL:1999 Extensions to SQL to support complex types include: Collection and large object types Nested relations are an example of collection types Structured types Nested record structures like composite attributes Inheritance Object orientation Including object identifiers and references Structured Types and Inheritance in SQL Structured types can be declared and used in SQL create type Name as (firstname varchar(20), lastname varchar(20)) final create type Address as (street varchar(20), city varchar(20), zipcode varchar(20)) not final Note: final and not final indicate whether subtypes can be created Structured Types and Inheritance in SQL Structured types can be used to create tables with composite attributes create table customer ( name Name, address Address, dateOfBirth date ) Dot notation used to reference components: Name.firstname Methods Can add a method declaration with a structured type. method ageOnDate (onDate date) returns interval year Method body is given separately. create instance method ageOnDate (onDate date) returns interval year for CustomerType begin return onDate - self.dateOfBirth; end Inheritance Suppose that we have the following type definition for people: create type Person (name varchar(20), address varchar(20)) Using inheritance to define the student and teacher types create type Student under Person (degree varchar(20), department varchar(20)) create type Teacher under Person (salary integer, department varchar(20)) Object-Identity and Reference Types Define a type Department with a field name and a field head which is a reference to the type Person, with table people as scope: create type Department ( name varchar (20), head ref (Person) scope people) We can then create
您可能关注的文档
最近下载
- 《园林景观手绘技法表现》教案——项目5园林景观立面图表现技法.docx VIP
- 《园林景观手绘技法表现》课件——项目5园林景观立面图表现技法.pptx VIP
- 金融市场与金融机构(原书第9版)题库chapter 1.doc VIP
- 售后服务承诺与保证措施方案.docx VIP
- 2025年国家开放大学《信息安全基础》期末考试备考试题及答案解析.docx VIP
- 在线网课学习课堂《羽毛球运动知识大讲堂》单元测试考核答案.docx VIP
- 离心泵控制系统计算机仿真实验报告.doc VIP
- 售后服务保证措施.docx VIP
- 2025年安全教育培训考试题库(真题模拟版)职业健康与环境保护试题(附答案).docx VIP
- 大学计算机基础题库大学计算机基础题库精选.doc VIP
有哪些信誉好的足球投注网站
文档评论(0)