Download IBM Informix Migration Guide

Transcript
(
salary integer,
manager varchar(30, 10)
) under person_t;
The following command displays the user-defined and complex data types, as well
as their type inheritance for the person_t table in the stork database:
dbschema -d stork -ui person_t
Output from dbschema that ran with the option -ui person_t might appear as the
following example shows:
create row type ’informix’.person_t
(
name varchar(30, 10) not null,
address varchar(20, 10),
city varchar(20, 10),
state char(2),
zip integer,
bdate date
);
create row type ’informix’.employee_t
(
salary integer,
manager varchar(30, 10)
) under person_t;
create row type ’informix’.sales_rep_t
(
rep_num integer,
region_num integer,
commission decimal(16),
home_office boolean
) under employee_t;
Sequence creation
The dbschema -seq sequence command generates information about sequence
creation.
The following syntax diagram fragment shows sequence creation.
-seq
sequence
all
Element
Purpose
Key Considerations
-seq sequence
Displays the CREATE SEQUENCE statement defining sequence
None.
-seq all
Displays all CREATE SEQUENCE statements for the database
None.
Running dbschema with option -seq sequitur might produce this output:
CREATE SEQUENCE sequitur INCREMENT 10 START 100 NOCACHE CYCLE
For more information about the CREATE SEQUENCE statement, see the IBM
Informix Guide to SQL: Syntax.
Synonym creation
The dbschema -s command generates information about synonym creation.
The following syntax diagram fragment shows the creation of synonyms.
Chapter 11. The dbschema utility
11-7