
Oracle Rdb™ SQL Reference Manual Volume 3 Release 7.2.5.2 for HP OpenVMS Industry Standard 64 for Integrity Servers and OpenVMS Alpha operating systems April 2012 ® SQL Reference Manual, Volume 3 Release 7.2.5.2 for HP OpenVMS Industry Standard 64 for Integrity Servers and OpenVMS Alpha operating systems Copyright © 1987, 2012 Oracle Corporation. All rights reserved. Primary Author: Rdb Engineering and Documentation group This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle, Java, Oracle Rdb, Hot Standby, LogMiner for Rdb, Oracle SQL/Services, Oracle CODASYL DBMS, Oracle RMU, Oracle CDD/Repository, Oracle Trace, and Rdb7 are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. Contents Send Us Your Comments ........................................... xi Preface ........................................................... xiii 7 SQL Statements CREATE SEQUENCE Statement .............................. 7–2 CREATE STORAGE AREA Clause ............................. 7–11 CREATE STORAGE MAP Statement . ......................... 7–25 CREATE SYNONYM Statement ............................... 7–54 CREATE TABLE Statement . ................................. 7–58 CREATE TRIGGER Statement ................................ 7–112 CREATE USER Statement . ................................. 7–133 CREATE VIEW Statement . ................................. 7–136 DECLARE ALIAS Statement . ................................. 7–147 DECLARE CURSOR Statement ................................ 7–159 DECLARE CURSOR Statement, Dynamic ........................ 7–176 DECLARE CURSOR Statement, Extended Dynamic ................ 7–182 DECLARE FUNCTION Statement ............................. 7–189 DECLARE LOCAL TEMPORARY TABLE Statement ............... 7–190 DECLARE MODULE Statement ............................... 7–200 DECLARE PROCEDURE Statement . ......................... 7–210 DECLARE Routine Statement ................................. 7–211 DECLARE STATEMENT Statement . ......................... 7–218 DECLARE TABLE Statement ................................. 7–220 DECLARE TRANSACTION Statement . ......................... 7–227 DECLARE Variable Statement ................................ 7–238 DELETE Statement ......................................... 7–241 DESCRIBE Statement ....................................... 7–247 iii DISCONNECT Statement .................................... 7–254 DROP Statements .......................................... 7–259 DROP CATALOG Statement .................................. 7–260 DROP COLLATING SEQUENCE Statement ...................... 7–263 DROP CONSTRAINT Statement . .............................. 7–266 DROP DATABASE Statement . .............................. 7–268 DROP DOMAIN Statement ................................... 7–271 DROP INDEX Statement ..................................... 7–274 DROP MODULE Statement ................................... 7–277 DROP OUTLINE Statement .................................. 7–280 DROP PATHNAME Statement . .............................. 7–282 DROP PROFILE Statement ................................... 7–283 DROP ROLE Statement ...................................... 7–286 Drop Routine Statement ..................................... 7–288 DROP SCHEMA Statement ................................... 7–292 DROP SEQUENCE Statement . .............................. 7–295 DROP STORAGE MAP Statement .............................. 7–298 DROP SYNONYM Statement . .............................. 7–300 DROP TABLE Statement ..................................... 7–302 DROP TRIGGER Statement .................................. 7–307 DROP USER Statement ...................................... 7–309 DROP VIEW Statement ...................................... 7–311 EDIT Statement ............................................ 7–314 END DECLARE Statement ................................... 7–318 Execute ( @ ) Statement ...................................... 7–321 EXECUTE Statement . ...................................... 7–324 EXECUTE IMMEDIATE Statement ............................ 7–332 EXIT Statement ............................................ 7–337 EXPORT Statement . ...................................... 7–338 FETCH Statement .......................................... 7–344 FOR Control Statement ...................................... 7–353 FOR (Counted) Control Statement .............................. 7–357 GET DIAGNOSTICS Statement . .............................. 7–364 GET ENVIRONMENT Statement .............................. 7–374 GRANT Statements . ...................................... 7–378 GRANT Statement .......................................... 7–380 GRANT Statement: ANSI/ISO-Style ............................ 7–401 iv GRANT Statement: Roles . ................................. 7–413 Index Tables 7–1 Using Temporary Tables . ................................. 7–84 7–2 Availability of Row Data for Triggered Actions . ................ 7–118 7–3 Classes, Types, and Modes of Cursors ........................ 7–161 7–4 GET ENVIRONMENT session keywords ...................... 7–375 7–5 SQL Privileges for Databases, Tables, Columns, Modules, External Routines and Sequences . ................................. 7–386 7–6 Privilege Override Capability ............................... 7–393 v Send Us Your Comments Oracle Rdb for OpenVMS Oracle SQL Reference Manual, Release 7.2.5.2 Oracle Corporation welcomes your comments and suggestions on the quality and usefulness of this publication. Your input is an important part of the information used for revision. • Did you find any errors? • Is the information clearly presented? • Do you need more information? If so, where? • Are the examples correct? Do you need more examples? • What features did you like most? If you find any errors or have any other suggestions for improvement, please indicate the document title, chapter, section, and page number (if available). You can send comments to us in the following ways: • Electronic mail:[email protected] • FAX — 603-897-3825 Attn: Oracle Rdb • Postal service: Oracle Corporation Oracle Rdb Documentation One Oracle Drive Nashua, NH 03062-2804 USA If you would like a reply, please give your name, address, telephone number, and (optionally) electronic mail address. If you have problems with the software, please contact your local Oracle Support Services. xi Preface This manual describes the syntax and semantics of the statements and language elements for the SQL (structured query language) interface to the Oracle Rdb database software. Intended Audience To get the most out of this manual, you should be familiar with data processing procedures, basic database management concepts and terminology, and the OpenVMS operating system. Operating System Information You can find information about the versions of the operating system and optional software that are compatible with this
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages448 Page
-
File Size-