ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf

上传人:terrorscript155 文档编号:1257284 上传时间:2019-09-02 格式:PDF 页数:1732 大小:31.94MB
下载 相关 举报
ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf_第1页
第1页 / 共1732页
ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf_第2页
第2页 / 共1732页
ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf_第3页
第3页 / 共1732页
ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf_第4页
第4页 / 共1732页
ISO IEC 9075-2-2016 Information technology - Database languages - SQL - Part 2 Foundation (SQL Foundation)《信息技术 数据库语言 结构化查询语言(SQL) 第2部分 基础(SQL Foundation)》.pdf_第5页
第5页 / 共1732页
点击查看更多>>
资源描述

1、Information technology Database languages SQL Part 2: Foundation (SQL/Foundation) Technologies de linformation Langages de base de donnes SQL Partie 2: Fondations (SQL/Fondations) INTERNATIONAL STANDARD ISO/IEC 9075-2 Reference number ISO/IEC 9075-2:2016(E) Fifth edition 2016-12-15 ISO/IEC 2016 ii I

2、SO/IEC 2016 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2016, Published in Switzerland 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 photocopying, or p

3、osting 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 Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fa

4、x +41 22 749 09 47 copyrightiso.org www.iso.org ISO/IEC 9075-2:2016(E)Contents Page Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi Introduction. . . . . . . . . . .

5、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxii 1 Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6、 . . . . . . . . . . 1 2 Normative references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 2.1 ISO and IEC standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7、 . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 Other international standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 Definitions, notations, and conventions. . . . . . . . . . . . . . . . . . . . . . . .

8、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1 Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.1 Definitions taken from ISO10646. . . . . . . . . . . . . . .

9、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.2 Definitions taken from ISO14651. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.3 Definitions taken from Unicode. . . . . . . . . . .

10、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.4 Definitions taken from ISO8601. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1.5 Definitions taken from ISO9075-1. . .

11、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1.6 Definitions provided in Part 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Notation. . . . . .

12、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3 Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13、 . . . . . . 13 3.3.1 Use of terms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.1.1 Other terms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

14、 . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4 Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1 Data types. . . . . . . . . . . . . . . . . . . . . . . . . . .

15、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.1 General introduction to data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.1.2 Naming of predefined types. . .

16、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1.3 Host language data types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.1.4 Data typ

17、e terminology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.1.5 Properties of distinct. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18、 . . . . . . . 19 4.2 Character strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.1 Introduction to character strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

19、 . . . . . . . . . . . . . . . . . . . . . . 20 4.2.2 Comparison of character strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.2.3 Operations involving character strings. . . . . . . . . . . . . . . . . . . . . . . .

20、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2.3.1 Regular expression syntaxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2.3.2 Operators that operate on character strings and return character

21、 strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.2.3.3 Other operators involving character strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.2.3.4 Operations involving large object character strings. . . . . . . . . .

22、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 4.2.4 Character repertoires. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.2.5 Character encoding forms. . . . . . . . . . . . . . . .

23、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ISO/IEC 2016 All rights reserved Contents iii ISO/IEC 9075-2:2016(E)4.2.6 Collations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24、 . . . . . . . . . . . . . . . . . . . 28 4.2.7 Character sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 4.2.8 Universal character sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.3 Binary strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 4.3.1 Introduction to binary strings. . . . . . . . .

26、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.3.2 Binary string comparison. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4.3.3 Operations involving b

27、inary strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.3.3.1 Operators that operate on binary strings and return binary strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.3.3.2 Other operators invol

28、ving binary strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.4 Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.4.

29、1 Introduction to numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.4.2 Characteristics of numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

30、 . . . . . . . . . 33 4.4.3 Operations involving numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.5 Boolean types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31、 . . . . . . . . . . . . . . . . . . . . . . .36 4.5.1 Introduction to Boolean types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.5.2 Comparison and assignment of booleans. . . . . . . . . . . . . . . . . . . . . . .

32、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.5.3 Operations involving booleans. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.5.3.1 Operations on booleans that return booleans. . . . . . . . . . . . .

33、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.5.3.2 Other operators involving booleans. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.6 Datetimes and intervals. . . . . . . . . . . . . . . . . . . . .

34、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.6.1 Introduction to datetimes and intervals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.6.2 Datetimes. . . . . . . . . . . . . . . .

35、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.6.3 Intervals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

36、0 4.6.4 Operations involving datetimes and intervals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 4.7 User-defined types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

37、 . . . . . . . .43 4.7.1 Introduction to user-defined types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.7.2 Distinct types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38、 . . . . . . . . . . . . . . . . . . . . . .43 4.7.3 Structured types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 4.7.3.1 Introduction to structured types. . . . . . . . . . . . . . . . . . . . . . .

39、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.7.3.2 Observer functions and mutator functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.7.3.3 Constructors. . . . . . . . . . . . . . . . . . . . . . . . . .

40、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.7.3.4 Subtypes and supertypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.7.4 Methods. . . . . . . . . . . .

41、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4.7.5 User-defined type comparison and assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.7.6 Transforms

42、 for user-defined types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.7.7 User-defined type descriptor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43、 48 4.8 Row types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 4.9 Reference types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44、 . . . . . . . . . . . . . . . . . . . 50 4.9.1 Introduction to reference types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.9.2 Operations involving references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 4.10 Collection types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 4.10.1 Introduction to collection types. . . . . . . . . . . . . . .

46、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 4.10.2 Arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 4.10.3 Multisets. . . . . . . .

47、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 iv Foundation (SQL/Foundation) ISO/IEC 2016 All rights reserved ISO/IEC 9075-2:2016(E)4.10.4 Collection comparison and assignment. . . . . . . . . . . . . .

48、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.10.5 Operations involving arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.10.5.1 Operators that operate on array values and r

49、eturn array elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.10.5.2 Operators that operate on array values and return array values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.10.5.3 Operators that operate on array values and return numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.10.6 Operations involving multisets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

展开阅读全文
相关资源
猜你喜欢
  • GA T 2000.114-2015 Information codes for public security industry.Part 114 Codes for drug abusing methods《公安信息代码 第114部分 吸毒方式代码》.pdf GA T 2000.114-2015 Information codes for public security industry.Part 114 Codes for drug abusing methods《公安信息代码 第114部分 吸毒方式代码》.pdf
  • GA T 2000.115-2015 Information codes for public security industry.Part 115 Codes for HIV infection situations《公安信息代码 第115部分 感染艾滋病情况代码 》.pdf GA T 2000.115-2015 Information codes for public security industry.Part 115 Codes for HIV infection situations《公安信息代码 第115部分 感染艾滋病情况代码 》.pdf
  • GA T 2000.116-2015 Information codes for public security industry.Part 116 Codes for sentence types of drug addicts《公安信息代码 第116部分 吸毒人员服刑种类代码》.pdf GA T 2000.116-2015 Information codes for public security industry.Part 116 Codes for sentence types of drug addicts《公安信息代码 第116部分 吸毒人员服刑种类代码》.pdf
  • GA T 2000.117-2015 Information codes for public security industry.Part 117 Codes for reasons for drug addicts free from penalty《公安信息代码 第117部分 吸毒人员不予处罚原因代码》.pdf GA T 2000.117-2015 Information codes for public security industry.Part 117 Codes for reasons for drug addicts free from penalty《公安信息代码 第117部分 吸毒人员不予处罚原因代码》.pdf
  • GA T 2000.118-2015 Information codes for public security industry.Part 118 Codes for reasons for being free from the administrative detention《公安信息代码 第118部分 行政拘留不予执行原因代码 》.pdf GA T 2000.118-2015 Information codes for public security industry.Part 118 Codes for reasons for being free from the administrative detention《公安信息代码 第118部分 行政拘留不予执行原因代码 》.pdf
  • GA T 2000.119-2015 Information codes for public security industry.Part 119 Codes for sources of rehabilitated people in drug rehabilitation places《公安信息代码 第119部分 戒毒康复场所康复人员来源代码》.pdf GA T 2000.119-2015 Information codes for public security industry.Part 119 Codes for sources of rehabilitated people in drug rehabilitation places《公安信息代码 第119部分 戒毒康复场所康复人员来源代码》.pdf
  • GA T 2000.120-2015 Information codes for public security industry.Part 120 Codes for reasons for conclusion of community-based drug rehabilitation《公安信息代码 第120部分:社区戒毒结束原因代码》.pdf GA T 2000.120-2015 Information codes for public security industry.Part 120 Codes for reasons for conclusion of community-based drug rehabilitation《公安信息代码 第120部分:社区戒毒结束原因代码》.pdf
  • GA T 2000.122-2015 Information codes for public security industry.Part 122 Codes for social security types《公安信息代码 第122部分 社会保险类型代码》.pdf GA T 2000.122-2015 Information codes for public security industry.Part 122 Codes for social security types《公安信息代码 第122部分 社会保险类型代码》.pdf
  • GA T 2000.123-2015 Information codes for public security industry.Part 123 Codes for job placement scale of drug addicts《公安信息代码 第123部分 吸毒人员就业安置规模代码 》.pdf GA T 2000.123-2015 Information codes for public security industry.Part 123 Codes for job placement scale of drug addicts《公安信息代码 第123部分 吸毒人员就业安置规模代码 》.pdf
  • 相关搜索
    资源标签

    当前位置:首页 > 标准规范 > 国际标准 > 其他

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1