没有合适的资源?快使用搜索试试~ 我知道了~
SQL 2003 standard part3
需积分: 3 50 下载量 88 浏览量
2008-07-24
10:25:15
上传
评论
收藏 1.56MB PDF 举报
温馨提示
试读
414页
共九部分,此为第三部分。<br>— Part 1: Framework (SQL/Framework)<br>— Part 2: Foundation (SQL/Foundation)<br>— Part 3: Call-Level Interface (SQL/CLI)<br>— Part 4: Persistent Stored Modules (SQL/PSM)<br>— Part 9: Management of External Data (SQL/MED)<br>— Part 10: Object Language Bindings (SQL/OLB)<br>— Part 11: Information and Definition Schema (SQL/Schemata)<br>— Part 13: Routines and Types Using the JavaTM Programming Language (SQL/JRT)<br>— Part 14: XML-Related Specifications (SQL/XML)<br><br>Title: (ISO-ANSI Working Draft) Call-Level Interface (SQL/CLI)
资源推荐
资源详情
资源评论
WG3:HBA-004
H2-2003-306
August, 2003
ISO
International Organization for Standardization
ANSI
American National Standards Institute
ANSI TC NCITS H2
ISO/IEC JTC 1/SC 32/WG 3
Database
Title: (ISO-ANSI Working Draft) Call-Level Interface (SQL/CLI)
Author: Jim Melton (Editor)
References:
1) WG3:HBA-002 = H2-2003-304 = 5WD-01-Framework-2003-09, WD 9075-1 (SQL/Framework),
September, 2003
2) WG3:HBA-003 = H2-2003-305 = 5WD-02-Foundation-2003-09, WD 9075-2 (SQL/Foundation),
September, 2003
3) WG3:HBA-004 = H2-2003-306 = 5WD-03-CLI-2003-09, WD 9075-3 (SQL/CLI), September, 2003
4) WG3:HBA-005 = H2-2003-307 = 5WD-04-PSM-2003-09, WD 9075-4 (SQL/PSM), September,
2003
5) WG3:HBA-006 = H2-2003-308 = 5WD-09-MED-2003-09, WD 9075-9 (SQL/MED), September,
2003
6) WG3:HBA-007 = H2-2003-309 = 5WD-10-OLB-2003-09, WD 9075-10 (SQL/OLB), September,
2003
7) WG3:HBA-008 = H2-2003-310 = 5WD-11-Schemata-2003-09, WD 9075-11 (SQL/Schemata),
September, 2003
8) WG3:HBA-009 = H2-2003-311 = 5WD-13-JRT-2003-09, WD 9075-13 (SQL/JRT), September,
2003
9) WG3:HBA-010 = H2-2003-312 = 5WD-14-XML-2003-09, WD 9075-14 (SQL/XML), September,
2003
2
ISO/IEC JTC 1/SC 32
Date: 2003-07-25
ISO/IEC 9075-3:2003 (E)
ISO/IEC JTC 1/SC 32/WG 3
United States of America (ANSI)
Information technology — Database languages — SQL — Part 3: Call-Level
Interface (SQL/CLI)
Technologies de l'information— Langages de base de données — SQL — Partie 3: Interface de Niveau d'Appel
(SQL/CLI)
Document type: International standard
Document subtype:
Document stage: (4) Approval
Document language: English
Copyright notice
This ISO document is a Draft International Standard and is copyright-protected by ISO. Except as permitted under
the applicable laws of the user’s country, neither this ISO draft nor any extract from it may be reproduced, stored
in a retrieval system, or transmitted in any form or by any means, electronic, photocopying, recording, or otherwise,
without prior written permission being secured.
Requests for permission to reproduce should be addressed to ISO at the address below or ISO’s member body
in the country of the requester.
Copyright Manager
ISO Central Secretariat
1 rue de Varembé
1211 Geneva 20 Switzerland
tel. +41 22 749 0111
fax +41 22 734 1079
internet: [email protected]
Reproduction may be subject to royalty payments or a licensing agreement.
Violaters may be prosecuted.
Contents Page
Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
1 Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Normative references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 JTC1 standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 Definitions, notations, and conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1.1 Definitions provided in Part 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2.1 Specification of routine definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
4 Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.1 Introduction to SQL/CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2 Return codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.3 Diagnostics areas in SQL/CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.3.1 Setting of ROW_NUMBER and COLUMN_NUMBER fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4 Miscellaneous characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.1 Handles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.2 Null terminated strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.3 Null pointers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.4.4 Environment attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.5 Connection attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4.6 Statement attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.4.7 CLI descriptor areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.4.8 Obtaining diagnostics during multi-row fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.5 Client-server operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Call-Level Interface specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1 <CLI routine>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.2 <CLI routine> invocation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.3 Implicit set connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.4 Implicit cursor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.5 Implicit DESCRIBE USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.6 Implicit EXECUTE USING and OPEN USING clauses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.7 Implicit CALL USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.8 Implicit FETCH USING clause. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.9 Character string retrieval. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
5.10 Binary large object string retrieval. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
©ISO/IEC 2003 – All rights reserved Contents iii
剩余413页未读,继续阅读
资源评论
kkppccdd
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功