Structured type

The SQL:1999 standard introduced a number of object–relational database features into SQL, chiefly among them structured user-defined types, usually called just structured types.

These can be defined either in plain SQL with CREATE TYPE but also in Java via SQL/JRT.

Structured types are supported to varying degrees in Oracle Database, IBM Db2, PostgreSQL and Microsoft SQL Server, although the latter only allows structured types defined in CLR.

NOT FINAL statement must be however included in a base structure type definition in order to allow for creation of any other subtypes.Student_Type then could be used in order to create a Student_Table which will include all columns defined in Person_Type as well.

Primary Key and Constraints should be defined during or after creation of table and cannot be defined inside structure type itself.Each custom structure type can also contain other types in order to support more complex structures:This database-related article is a stub.