ISO IEC 9075-3-2016 Information technology - Database languages - SQL - Part 3 Call-Level Interface (SQL CLI)《信息技术 数据库语言 结构化查询语言(SQL) 第3部分 呼叫级接口(SQL CLI)》.pdf

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

1、Information technology Database languages SQL Part 3: Call-Level Interface (SQL/CLI) Technologies de linformation Langages de base de donnes SQL Partie 3: Interface de niveau dappel (SQL/CLI) INTERNATIONAL STANDARD ISO/IEC 9075-3 Reference number ISO/IEC 9075-3:2016(E) Fifth edition 2016-12-15 ISO/I

2、EC 2016 ii ISO/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 photoc

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

4、749 01 11 Fax +41 22 749 09 47 copyrightiso.org www.iso.org ISO/IEC 9075-3:2016(E)Contents Page Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Introduction. . . . .

5、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x 1 Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

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

7、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 Definitions, notations, and conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1 Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.1 Definitions provided in Part 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.2 Conventions. . . . . . . . . . . . . . . . . .

9、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.2.1 Specification of routine definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 Concepts. . . . .

10、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.1 Introduction to SQL/CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11、 . . . . . . 7 4.2 Return codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.3 Diagnostics areas in SQL/CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12、 . . . . . . . . . . . . . . . . . . . 11 4.3.1 Setting of ROW_NUMBER and COLUMN_NUMBER fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.4 Miscellaneous characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13、 . . . . . . . . . . . . 15 4.4.1 Handles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.4.2 Null terminated strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

14、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.4.3 Null pointers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.4.4 Environment attributes. . . . . . . . . . . . . . . .

15、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 4.4.5 Connection attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 4.4.6 Statement attributes. .

16、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.4.7 CLI descriptor areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17、 . 18 4.4.8 Obtaining diagnostics during multi-row fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.5 SQL-invoked routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18、 . . . . . . . . 19 4.5.1 Result sets returned by SQL-invoked procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.6 Cursors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

19、 . . . . . . . . . . . . . . . . . . 20 4.6.1 General description of cursors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.7 Client-server operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

20、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 5 Call-Level Interface specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.2 invocation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.3 Implicit set connection. . . . . . . . . . . . . . . . . . . . . . . . . .

22、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5.4 Preparing a statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5.5 Executing a statement. . . . . . . . . . . . .

23、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 ISO/IEC 2016 All rights reserved Contents iii ISO/IEC 9075-3:2016(E)5.6 Implicit CLI prepared cursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24、 . . . . . . . . . . . . . . . . . . 37 5.7 Implicit CLI procedural result cursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.8 Initial CLI cursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.9 Implicit DESCRIBE USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 5.10 Implicit EXECUTE USING and OPEN USING clauses. . . . . . . . . . . . . . . . . .

26、 . . . . . . . . . . . . . . . . . . . . . . 47 5.11 Implicit CALL USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.12 Fetching a rowset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

27、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 5.13 Implicit FETCH USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.14 Character string retrieval. . . . . . . . . . . . . . . . . . . . .

28、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 5.15 Binary string retrieval. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.16 Deferred parameter check. . . . . .

29、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 5.17 CLI-specific status codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 5.18 Description

30、 of CLI item descriptor areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.19 Other tables associated with CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 5.20

31、 SQL/CLI data type correspondences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 6 SQL/CLI routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

32、 . . . 123 6.1 AllocConnect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 6.2 AllocEnv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

33、 . . . . . . . . . . . . . . . . . . . . . 124 6.3 AllocHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 6.4 AllocStmt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

34、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 6.5 BindCol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 6.6 BindParameter. . . . . . . . . . . . . .

35、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 6.7 Cancel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 6.8 Cl

36、oseCursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 6.9 ColAttribute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

37、 . . . . . . . . . . . . 139 6.10 ColumnPrivileges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 6.11 Columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 6.12 Connect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 6.13 CopyDesc. . . . . . . . . . . . . . . . . . . . . . . . . .

39、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 6.14 DataSources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 6.15 DescribeCol. . . . . .

40、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 6.16 Disconnect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

41、 . . 166 6.17 EndTran. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 6.18 Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42、 . . . . . . . . . . . . . . . . . . . . . . . . . 172 6.19 ExecDirect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 6.20 Execute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 6.21 Fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 6.22 FetchScroll. . . . . .

44、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 6.23 ForeignKeys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45、 . . . 178 6.24 FreeConnect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 6.25 FreeEnv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46、 . . . . . . . . . . . . . . . . . . . . . . . 192 6.26 FreeHandle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193 6.27 FreeStmt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 iv Call-Level Interface (SQL/CLI) ISO/IEC 2016 All rights reserved ISO/IEC 9075-3:2016(E)6.28 GetConnectAttr. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48、 . . . . . . . . . . . . . . . . . . . . . 198 6.29 GetCursorName. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 6.30 GetData. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

49、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 6.31 GetDescField. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 6.32 GetDescRec. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 6.33 GetDiagField. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

展开阅读全文
相关资源
猜你喜欢
  • KS J ISO 17410-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of psychrotrophic microorganisms《食品和动物饲料的微生物学 适冷微生物记数水平方法》.pdf KS J ISO 17410-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of psychrotrophic microorganisms《食品和动物饲料的微生物学 适冷微生物记数水平方法》.pdf
  • KS J ISO 21569-2011 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Qualitative nucleic acid based methods《食品 基因改良有机物和衍生产品的检.pdf KS J ISO 21569-2011 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Qualitative nucleic acid based methods《食品 基因改良有机物和衍生产品的检.pdf
  • KS J ISO 21570-2011 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Quantitative nucleic acid based methods《食品 转基因有机体和衍生物探测分.pdf KS J ISO 21570-2011 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Quantitative nucleic acid based methods《食品 转基因有机体和衍生物探测分.pdf
  • KS J ISO 21571-2006 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Nucleic acid extraction《食品 基因改良有机物及其衍生产品检测的分析方法 核酸萃取》.pdf KS J ISO 21571-2006 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-Nucleic acid extraction《食品 基因改良有机物及其衍生产品检测的分析方法 核酸萃取》.pdf
  • KS J ISO 21572-2009 Foodstuffs-Methods for the detection of genetically modified organisms and derived products-Protein based methods《食品 基因改良有机物及衍生产品的检测方法 基于蛋白质的方法》.pdf KS J ISO 21572-2009 Foodstuffs-Methods for the detection of genetically modified organisms and derived products-Protein based methods《食品 基因改良有机物及衍生产品的检测方法 基于蛋白质的方法》.pdf
  • KS J ISO 24276-2006 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-General requirements and definitions《食品 基因改良有机物及其衍生产品检测的.pdf KS J ISO 24276-2006 Foodstuffs-Methods of analysis for the detection of genetically modified organisms and derived products-General requirements and definitions《食品 基因改良有机物及其衍生产品检测的.pdf
  • KS J ISO 4831-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the detection and enumeration of coliforms-Most probable number technique《食品和动物饲料微生物学 大肠杆菌菌落.pdf KS J ISO 4831-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the detection and enumeration of coliforms-Most probable number technique《食品和动物饲料微生物学 大肠杆菌菌落.pdf
  • KS J ISO 4832-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of coliforms-Colony-count technique《食品和动物饲料的微生物学 大肠杆菌菌落计数水平办法 菌落计数技术》.pdf KS J ISO 4832-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of coliforms-Colony-count technique《食品和动物饲料的微生物学 大肠杆菌菌落计数水平办法 菌落计数技术》.pdf
  • KS J ISO 4833-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of microorganisms-Colony-count technique at 30℃《食品和动物饲料的微生物学 微生物计数的水平法 30℃时的.pdf KS J ISO 4833-2007 Microbiology of food and animal feeding stuffs-Horizontal method for the enumeration of microorganisms-Colony-count technique at 30℃《食品和动物饲料的微生物学 微生物计数的水平法 30℃时的.pdf
  • 相关搜索
    资源标签

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

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