Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_TRANSFORM, 2 of 4


CREATE_TRANSFORMATION Procedure

This procedure creates a transformation that maps an object of the source type to an object of the target type. The transformation expression can be a SQL expression or a PLSQL function. It must return an object of the target type.

Syntax

DBMS_TRANSFORM.CREATE_TRANSFORMATION (
    schema            VARCHAR2(30),
    name                 VARCHAR2(30),
    to_schema            VARCHAR2(30),
    to_name              VARCHAR2(30),
    from_schema          VARCHAR2(30),
    from_name            VARCHAR2(30),

You can also specify the transformation expression, which returns an object of the target type. If the target type is an ADT, the expression must be a function returning an object of the target type or a constructor expression for the target type. You can choose to not specify a transformation expression and specify a transformation per attribute of the target_type using MODIFY_TRANSFORMATION.

    transformation    VARCHAR2(4000)); 

Parameters

Table 66-2 CREATE_TRANSFORMATION Procedure Parameters
Parameter  Description 
schema
 

Specifies the schema of the transformation 

name
 

Specifies the name of the transformation. 

from_schema
 

Specifies the schema of the source type 

from_name
 

Specifies the source type. 

to_schema
 

Specifies the target type schema 

to_type
 

Specifies the target type. 

transformation
 

Specifies the transformation expression, returning an object of the target type. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

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

Master Index

Feedback