ANSI INCITS 135-1992 Information Technology - Database Languages - SQL.pdf
《ANSI INCITS 135-1992 Information Technology - Database Languages - SQL.pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS 135-1992 Information Technology - Database Languages - SQL.pdf(626页珍藏版)》请在麦多课文档分享上搜索。
1、ANSI INCITS 135-1992 (R1998) (formerly ANSI X3.135-1992 (R1998)for Information Systems -Database Language -SQLANSI x3.1 35-1992 Revision and consolidation of ANSI X3.1 35-l 989, and ANSI X3.168-1 989 American National Standard for Information Systems - Database Language - SQL Secretariat Computer an
2、d Business Equipment Manufacturers Association Approved October 16, 1992 American National Standards Institute, Inc. AmericanNationalStandardApproval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met
3、 by the standards developer.Consensus is established when, in the judgment of the ANSI Board of StandardsReview, substantial agreement has been reached by directly and materiallyaffected interests. Substantial agreement means much more than a simplemajority, but not necessarily unanimity. Consensus
4、requires that all views andobjections be considered, and that a concerted effort be made toward theirresolution.The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has approved the standardsor not, from manufacturing, mar
5、keting, purchasing, or using products, processes,or procedures not conforming to the standards.The American National Standards Institute does not develop standards and will inno circumstances give an interpretation of any American National Standard.Moreover, no person shall have the right or authori
6、ty to issue an interpretation ofan American National Standard in the name of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat orsponsor whose name appears on the title page of this standard.CAUTION NOTICE: This American National Standard m
7、ay be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, or withdrawthis standard. Purchasers of American National Standards may receive currentinformation on all standards by calling or writing t
8、he American National StandardsInstitute.Published byAmerican National Standards Institute11 West 42nd Street, New York, New York 10036Copyright 1992 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieva
9、l system or otherwise,without prior written permission of ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaContents Page Foreword . xi Introduction . xvii 1 Scope .l 2 Normative references .3 3 Definitions, notations, and conventions .5 3.1 Definitions .5 3.1.1 Def
10、initions taken from ISO/IEC 10646 . .5 3.1.2 Definitions taken from IS0 8601 . .5 3.1.3 Definitions provided in this American National Standard . 3.2 Notation . .7 3.3 Conventions 8 3.3.1 Informative elements .8 3.3.2 Specification of syntactic elements . .8 3.3.3 Specification of the Information Sc
11、hema . .9 3.3.4 Use of terms .9 3.3.4.1 Exceptions .9 3.3.4.2 Syntactic containment .9 3.3.4.3 Terms denoting rule requirements .10 3.3.4.4 Rule evaluation order . .10 3.3.4.5 Conditional rules .ll 3.3.4.6 Syntactic substitution . .l 1 3.3.4.7 Other terms . .12 3.3.5 Descriptors .12 3.3.6 Index typo
12、graphy . .13 3.4 Object identifier for Database Language SQL .13 4 Concepts .15 4.1 Data types .15 4.2 Character strings .16 4.2.1 Character strings and collating sequences .16 4.2.2 Operations involving character strings .17 4.2.2.1 Operators that operate on character strings and return character s
13、trings . .17 4.2.2.2 Other operators involving bit strings . .18 4.2.3 Rules determining collating sequence usage . .18 4.3 Bit strings . .21 4.3.1 Bit string comparison and assignment . .21 4.3.2 Operations involving bit strings . .21 4.3.2.1 Operators that operate on bit strings and return bit str
14、ings .21 4.3.2.2 Other operators involving bit strings . .21 4.4 Numbers .21 4.4.1 Characteristics of numbers . .22 4.4.2 Operations involving numbers .23 4.5 Datetimes and intervals .23 4.5.1 Datetimes .23 4.5.2 Intervals .25 4.5.3 Operations involving datetimes and intervals . .26 4.6 Type convers
15、ions and mixing of data types . .27 4.7 Domains . .28 i 4.8 Columns . .28 4.9 Tables . 29 4.10 Integrity constraints .31 4.10.1 Checking of constraints .32 4.10.2 Table constraints . .32 4.10.3 Domain constraints . 33 4.10.4 Assertions . .33 4.11 SQL-schemas . .34 4.12 Catalogs 34 4.13 Clusters of c
16、atalogs .35 4.14 SQL-data .35 4.15 SQL-environment . .35 4.16 Modules 36 4.17 Procedures . .36 4.18 Parameters . .36 4.18.1 Status parameters .36 4.18.2 Data parameters .37 4.18.3 Indicator parameters . 3 7 4.19 Diagnostics area . .37 4.20 Standard programming languages . .38 4.21 Cursors . 38 4.22
17、SQL-statements .39 4.22.1 Classes of SQL-statements .39 4.22.2 SQL-statements classified by function .40 4.22.3 Embeddable SQL-statements . .43 4.22.4 Preparable and immediately executable SQL-statements . .44 4.22.5 Directly executable SQL-statements 46 4.22.6 SQL-statements and transaction states
18、. .47 4.23 Embedded syntax . .48 4.24 SQL dynamic statements .49 4.25 Direct invocation of SQL . .51 4.26 Privileges . .51 4.27 SQL-agents .53 4.28 SQL-transactions . 53 4.29 SQL-connections .56 4.30 SQL-sessions 5 7 4.31 Client-server operation . .59 4.32 information Schema .59 4.33 Leveling . .60
19、4.34 SQL Flagger . .60 5 Lexical elements 63 5.1 . .63 5.2 and . 66 5.3 . . .71 5.4 Names and identifiers . .78 6 Scalar expressions .85 6.1 . . .85 6.2 and . . .91 6.3 . .94 6.4 . . .96 6.5 - Annex B: Implementation-defined elements: - Annex C: Implementation-dependent elements; - Annex D: Deprecat
20、ed features; - Annex E: Incompatibilities with ANSI X3.135-1989; - Annex F: Maintenance and interpretation of SQL. Introduction This American National Standard was approved in 1992. This American National Standard was developed from ANSI X3.135-1989, information Systems, Database Language SQL with I
21、ntegrity Enhance- ments, and replaces that American National Standard. It adds significant new features and capabilities to the specifications. It is generally compati- ble with ANSI X3.135-1989 in the sense that, with very few exceptions, SQL language that conforms to ANSI X3.135-1989 also conforms
22、 to this American National Standard, and will be treated in the same way by an implementation of this American National Standard as it would by an imple- mentation of ANSI X3.135-1989. The known incompatibilities between ANSI X3.135-1989 and this American National Standard are stated in infor- mativ
23、e Annex E, Incompatibilities with ANSI X3.1 351989. xi Technical changes between ANSI X3.135-1989 and this American National Standard include both improvements or enhancements to existing features and the definition of new features. Significant improvements in existing features include: - A better d
24、efinition of direct invocation of SQL language; - Improved diagnostic capabilities, especially a new status parameter (SQLSTATE), a diagnostics area, and supporting statements. Significant new features are: 1) Support for additional data types (DATE, TIME, TIMESTAMP, INTER- VAL, BIT string, variable
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITS1351992INFORMATIONTECHNOLOGYDATABASELANGUAGESSQLPDF

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