ISO IEC TS 13249-7-2013 Information technology - Database languages - SQL multimedia and application packages - Part 7 History《信息技术 数据库语言 SQL多媒体和应用程序包 第7部分 历史记录.pdf
《ISO IEC TS 13249-7-2013 Information technology - Database languages - SQL multimedia and application packages - Part 7 History《信息技术 数据库语言 SQL多媒体和应用程序包 第7部分 历史记录.pdf》由会员分享,可在线阅读,更多相关《ISO IEC TS 13249-7-2013 Information technology - Database languages - SQL multimedia and application packages - Part 7 History《信息技术 数据库语言 SQL多媒体和应用程序包 第7部分 历史记录.pdf(116页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ISO/IEC TS 13249-7:2013(E) ISO/IEC 2013TECHNICAL SPECIFICATION ISO/IEC TS 13249-7 First edition 2013-02-15Information technology Database languages SQL multimedia and application packages Part 7: History Technologies de linformation Langages de bases de donnes Multimdia SQL et paqu
2、etages dapplication Partie 7: Historique ISO/IEC TS 13249-7:2013(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2013 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocop
3、ying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47
4、 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2013 All rights reservedISO/IEC TS 13249-7:2013(E) ISO/IEC 2013 All rights reserved iiiContents Page Foreword vi Introduction . vii 1 Scope 1 2 Normative references 1 3 Terms and definitions, concepts, notations and convent
5、ions . 2 3.1 Terms and definitions . 2 3.1.1 Terms and definitions provided in ISO/IEC 9075-1 2 3.1.2 Terms and definitions provided in ISO/IEC 9075-2 2 3.1.3 Terms and definition provided in this Technical Specification 2 3.2 Concepts 3 3.2.1 Concepts taken from ISO/IEC 9075-1 3 3.2.2 Concepts take
6、n from ISO/IEC 9075-2 4 3.2.3 Syntactic elements taken from ISO/IEC 9075-2 4 3.2.4 Other concepts 5 3.2.5 Notations 5 3.2.6 Notations provided in ISO/IEC 13249-1 . 5 3.2.7 Notations provided in ISO/IEC 13249-7 . 5 3.3 Conventions . 6 4 Concepts 6 4.1 Overview . 6 4.1.1 Tracked Table and History Tabl
7、e . 6 4.1.2 Concept of Transaction Timestamp 7 4.1.3 Operations on Tracked Table . 7 4.1.4 Operations on time periods 8 4.1.5 Concept of Period Normalization . 11 4.2 Structure of History Table 13 4.3 Creating History Table and Storing History Row in History Table . 14 4.4 Retrieving a History Table
8、 14 4.5 Types representing history rows . 14 4.5.1 HS_History type . 14 4.5.2 type . 17 4.6 Complementary SQL-invoked regular functions . 17 4.6.1 Constructor method of the HS_History type 18 4.6.2 Methods of the HS_History type for treating a period . 18 4.6.3 Methods of the type 19 4.7 The History
9、 Information Schema . 19 5 History Procedures . 19 5.1 HS_CreateHistory Procedure and its related Procedures . 19 5.1.1 HS_CreateHistory Procedure . 19 5.1.2 HS_CreateHistoryErrorCheck Procedure . 20 5.1.3 HS_CreateHistoryPrivilegeCheck procedure . 23 5.1.4 HS_CreateHistoryTableSequenceNumberGenerat
10、or procedure 24 5.1.5 HS_CreateHistoryTableType Procedure . 25 5.1.6 HS_CreateHistoryTable Procedure 26 5.1.7 HS_CreateInsertTrigger Procedure . 26 5.1.8 HS_CreateUpdateTrigger Procedure . 27 5.1.9 HS_CreateDeleteTrigger Procedure 29 5.1.10 HS_CreateHistoryTableMethod Procedure . 30 5.1.11 HS_Create
11、PNormalizeMethod Procedure . 31 ISO/IEC TS 13249-7:2013(E) iv ISO/IEC 2013 All rights reserved5.1.12 HS_InitializeHistoryTable Procedure .34 5.2 HS_DropHistory Procedure and its related Procedures 35 5.2.1 HS_DropHistory Procedure 35 5.2.2 HS_DropHistoryErrorCheck Procedure.35 5.2.3 HS_DropHistoryTa
12、bleTypeMethod Procedure .36 5.2.4 HS_DropHistoryTrigger Procedure 37 5.2.5 HS_DropHistoryTable Procedure .38 5.2.6 HS_DropHistoryTableType Procedure 39 5.2.7 HS_DropHistoryTableSequenceNumberGenerator procedure .40 5.3 Utility Procedures for History .41 5.3.1 Functions for extracting an identifier 4
13、1 5.3.2 HS_CreateCommaSeparatedTrackedColumnList Procedure .44 5.3.3 HS_CreateCommaSeparatedTrackedColumnAndTypeList Procedure 45 5.3.4 Functions for constructing an identifier and .47 5.3.5 HS_GetPrimaryKeys function .50 5.3.6 HS_GetTransactionTimestamp function .51 5.3.7 HS_GetHistoryRowSetIdentif
14、ierColumns procedure .51 5.3.8 HS_CreateCommaSeparatedIdentifierColumnList procedure 54 5.3.9 HS_CreateIdentifierColumnSelfJoinCondition procedure 56 5.3.10 Functions for constructing an identifier literal .58 5.3.11 HS_CreateCommaSeparatedTrackedColumnLiteralList procedure .60 5.4 and .61 5.5 Schem
15、a for Type .61 5.6 .62 6 History Types .62 6.1 HS_History Type and Routines 62 6.1.1 HS_History Type 62 6.1.2 HS_History Method 66 6.1.3 HS_Overlaps Methods .67 6.1.4 HS_Meets Methods 70 6.1.5 HS_Precedes Methods 71 6.1.6 HS_PrecedesOrMeets Methods 72 6.1.7 HS_Succeeds Methods .73 6.1.8 HS_SucceedsO
16、rMeets Methods .74 6.1.9 HS_Contains Methods .75 6.1.10 HS_Equals Methods 77 6.1.11 HS_MonthInterval Method 78 6.1.12 HS_DayInterval Method .79 6.1.13 HS_Intersect Methods .80 6.1.14 HS_Union Methods 82 6.1.15 HS_Except Methods 83 6.2 Type and Routines 85 6.2.1 Type 85 6.2.2 HS_HistoryTable Method 8
17、6 6.2.3 HS_PNormalize Methods 87 7 SQL/MM History Information Schema .92 7.1 Introduction 92 7.2 HS_TRACKED_TABLES view .93 7.3 HS_TRACKED_COLUMNS view .93 8 SQL/MM History Definition Schema .93 8.1 Introduction 93 8.2 HS_TRACKED_TABLES base table .93 8.3 HS_TRACKED_COLUMNS base table .94 9 Status C
18、odes 94 10 Conformance 96 10.1 Requirements for conformance .96 10.2 Features of ISO/IEC 9075 required in this Technical Specification 96 ISO/IEC TS 13249-7:2013(E) ISO/IEC 2013 All rights reserved v10.3 Claims of conformance . 97 Annex A (informative) Example Application 98 A.1 Introduction 98 A.2
19、Storing History Rows 98 A.3 Example of Queries to History Table . 102 Bibliography 107 ISO/IEC TS 13249-7:2013(E) vi ISO/IEC 2013 All rights reservedForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system f
20、or worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collab
21、orate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards
22、are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as
23、an International Standard requires approval by at least 75 % of the national bodies casting a vote. In other circumstances, particularly when there is an urgent market requirement for such documents, the joint technical committee may decide to publish an ISO/IEC Technical Specification (ISO/IEC TS),
24、 which represents an agreement between the members of the joint technical committee and is accepted for publication if it is approved by 2/3 of the members of the committee casting a vote. An ISO/IEC TS is reviewed after three years in order to decide whether it will be confirmed for a further three
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIECTS1324972013INFORMATIONTECHNOLOGYDATABASELANGUAGESSQLMULTIMEDIAANDAPPLICATIONPACKAGESPART7HISTORY

链接地址:http://www.mydoc123.com/p-1257450.html