Skip Headers

Oracle® Application Server Integration Adapter for IMS/DB Installation and User's Guide
10g (9.0.4)

Part Number B10505-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

C
Supported SQL Syntax and SQL Enhancements

The Oracle Application Server Integration Adapter for IMS/DB provides basic support for standard ANSI '92 SQL along with a number of enhancements, all of which can be used when specifying adapter interactions. This appendix contains the following sections:

Supported SQL Statements

The Oracle Application Server Integration Adapter for IMS/DB provides full support for SELECT, DELETE, INSERT, and UPDATE statements, when specified in interactions.

Supported Operators

The Oracle Application Server Integration Adapter for IMS/DB enables the use of the following operators in SQL statements:

Supported Functions

The Oracle Application Server Integration Adapter for IMS/DB enables the use of the following functions in SQL statements:

SQL Enhancements

You can incorporate the following SQL enhancements into the adapter interactions to handle hierarchical data in IMS/DB.

Generating Hierarchical Results

A hierarchical query nests a SELECT statement as one of the columns of the rowset retrieved by a nested SELECT statement.

Use braces ({}) to delimit the nesting.

Accessing Hierarchical Data Using SQL

Data stored hierarchically in a IMS/DB data source can be referenced by using a hyphen followed by a right arrow (->) to denote the parent child relationship in the source:

FROM ... parent_name->child1->child2... [alias]

Or, using an alias for the parent table:

FROM ... parent_alias->child1->child2... [alias]

Flattening Hierarchical Data Using SQL

You can produce a flattened view of hierarchical data by embedding a SELECT statement inside the list of columns to be retrieved by another SELECT statement. You use parentheses to delimit the nesting. The nested SELECT statement can reference a child rowset (using the parent->child syntax) only in its FROM clause.

Using an Alias

To list the hierarchical data with the parent data only, you must use an alias for the child data.


Note:

Without an alias the query lists, for each parent row, all of the children of all of the parent rows.



Go to previous page Go to next page
Oracle
Copyright © 2003 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index