Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
Functions, 115 of 121
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.
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 © 1999 Oracle Corporation. All Rights Reserved. |
|