Download IBM Informix Guide to SQL Reference
Transcript
Complex Data Types
All complex types that include opaque data types inherit the following
support functions:
input
output
send
recv
import
export
import binary
export binary
assign
destroy
LO handles
hash
lessthan
equal
lessthan (row only)
The following sections summarize the complex data types. For more information on complex data types, see the Informix Guide to Database Design and
Implementation.
Collection Data Types
A collection data type is a complex type that is made up of one or more
elements. Every element in a collection has the same data type. A collection
element can be of any data type (including other complex types) except BYTE,
TEXT, SERIAL, or SERIAL8.
Important: An element cannot have a NULL value. You must specify the NOT NULL
constraint for collection elements. No other constraints are valid for collections.
Dynamic Server supports three kinds of collection types: LIST, SET, and
MULTISET. The keywords used to declare these collections are the names of
the type constructors or just constructors. For a description of each of these
collection data types, see its entry in this chapter. For the syntax of collection
types, see the Informix Guide to SQL: Syntax.
Using Complex Data Types in Table Columns
When you specify element values for a collection, list the element values after
the constructor and between braces ( { } ) symbols. For example, suppose you
have a collection column with the following type:
CREATE TABLE table1
(
mset_col MULTISET(INTEGER NOT NULL)
)
Data Types 2-59
Related documents
Informix Guide to SQL: Reference
Informix Guide to SQL: Reference
Performance Guide for Informix Dynamic Server, Version 7.3
IBM Informix DB-Access User's Guide
SQL Quick Syntax Guide
IBM Informix DB-Access User's Guide
Performance Guide for IBM Informix Dynamic Server
Informix Storage Manager Administrator`s Guide, December 1999
DB-Access User's Manual
Informix Storage Manager Administrator`s Guide, February
IBM Informix GLS User's Guide
Informix Guide to GLS Functionality, December 1999