Oracle9i SQL Reference Release 1 (9.0.1) Part Number A90125-01 |
|
Functions, 159 of 166
value::=
value
In a SQL statement, VALUE
takes as its argument a correlation variable (table alias) associated with a row of an object table and returns object instances stored in the object table. The type of the object instances is the same type as the object table.
The following hypothetical example shows how to an object instance stored in an object table:
CREATE TYPE emp_type AS OBJECT (eno NUMBER, ename VARCHAR2(20), salary NUMBER); CREATE TABLE emp_table OF emp_type (primary key (eno, ename)); INSERT INTO emp_table VALUES (10, 'jack', 50000); SELECT VALUE(e) FROM emp_table e; VALUE(E)(ENO, ENAME, SALARY) ---------------------------------------------------- EMP_TYPE(10, 'jack', 50000)
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|