BS PD ISO IEC TR 19075-3-2015 Information technology Database languages SQL Technical Reports SQL Embedded in Programs using the JavaTM programming language《信息技术 数据库语言 SQL技术报告 使用Ja.pdf
《BS PD ISO IEC TR 19075-3-2015 Information technology Database languages SQL Technical Reports SQL Embedded in Programs using the JavaTM programming language《信息技术 数据库语言 SQL技术报告 使用Ja.pdf》由会员分享,可在线阅读,更多相关《BS PD ISO IEC TR 19075-3-2015 Information technology Database languages SQL Technical Reports SQL Embedded in Programs using the JavaTM programming language《信息技术 数据库语言 SQL技术报告 使用Ja.pdf(34页珍藏版)》请在麦多课文档分享上搜索。
1、BSI Standards PublicationPD ISO/IEC TR 19075-3:2015Information technology Database languages SQL T e c h n i c a l R e p o r t sPart 3: SQL Embedded in Programs using the JavaTMprogramming languagePD ISO/IEC TR 19075-3:2015 PUBLISHED DOCUMENTNational forewordThis Published Document is the UK impleme
2、ntation of ISO/IEC TR 19075-3:2015.The UK participation in its preparation was entrusted to Technical Committee IST/40, Data management and interchange.A list of organizations represented on this committee can be obtained on request to its secretary.This publication does not purport to include all t
3、he necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2015.Published by BSI Standards Limited 2015ISBN 978 0 580 85111 7 ICS 35.060 Compliance with a British Standard cannot confer immunity from legal obligations.This Published Do
4、cument was published under the authority of the Standards Policy and Strategy Committee on 31 July 2015.Amendments/corrigenda issued since publicationDate T e x t a f f e c t e dInformation technology Database languages SQL Technical Reports Part 3: SQL Embedded in Programs using the JavaTMprogrammi
5、ng languageTechnologies de linformation Langages de base de donnes SQL rapports techniques Partie 3: SQL intgres dans des programmes utilisant le langage de programmation de JavaTMTECHNICAL REPORTISO/IEC TR 19075-3First edition 2015-07-01Reference number ISO/IEC TR 19075-3:2015(E) ISO/IEC 2015PD ISO
6、/IEC TR 19075-3:2015ii ISO/IEC 2015 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO/IEC 2015, Published in SwitzerlandAll 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, includ
7、ing photocopying, 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 officeCh. de Blandonnet 8 CP 401CH-1214 Vernier, Geneva, SwitzerlandTel. +
8、41 22 749 01 11Fax +41 22 749 09 47copyrightiso.orgwww.iso.orgISO/IEC TR 19075-3:2015(E)PD ISO/IEC TR 19075-3:2015Contents PageForeword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9、 . . . vIntroduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi1 Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Normative references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.1 ISO and IEC standards. . . . . . . . . . . . . . . . . . . . . . . .
11、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2 Other international standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Use of SQL in programs written in Java. . . . . .
12、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.1 Design goals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.2 Advantages of SQL/OLB over JDBC
13、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.3 Consistency with existing embedded SQL languages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.4 Profile customization overview. . . . .
14、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.4.1 Profile customization process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.4.2 Profile customizati
15、on utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.5 Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16、 . . . . 83.5.1 Example of Profile generation and naming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.5.2 Example of a JAR manifest file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17、 . . . . . . . . . 83.5.3 Host variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.5.4 Host expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.5.5 SQL/OLB clauses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.5.6 Connection contexts. . . . . . . . . . . . . . . . . . . . . . . . .
19、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.5.7 Default connection context. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.5.8 Iterators. . . . . . . . . . . . . . . . .
20、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.5.8.1 Positional bindings to columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.5.8.2 Named
21、 bindings to columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.5.8.3 Providing names for columns of queries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.
22、5.9 Invoking SQL-invoked routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.5.10 Using multiple SQL/OLB contexts and connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
23、.5.11 SQL execution control and status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.5.12 Multiple java.sql.ResultSet objects from SQL-invoked procedure calls. . . . . . . . . . . . . . . . . . . . . . 163.5.13 Creating an SQ
24、L/OLB iterator object from a java.sql.ResultSet object. . . . . . . . . . . . . . . . . . . . . . 173.5.14 Obtaining a java.sql.ResultSet object from an iterator object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.5.15 Working with user-defined types. . . . . . . . . . . . . . . .
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BSPDISOIECTR1907532015INFORMATIONTECHNOLOGYDATABASELANGUAGESSQLTECHNICALREPORTSSQLEMBEDDEDINPROGRAMSUSINGTHEJAVATMPROGRAMMINGLANGUAGE

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