Subtype Definition
This is a translation reference to convert the Subtype Variant of the Oracle Create Type Statements (UDT's) to Snowflake
Description
CREATE TYPE <type name> UNDER <super type name>
( [{<type column definition> | type method definition } , ...]);Sample Source Patterns
Subtypes under an Object Type
Oracle
CREATE TYPE person_t AS OBJECT (name VARCHAR2(100), ssn INTEGER)
NOT FINAL;
/
CREATE TYPE employee_t UNDER person_t
(department_id INTEGER, salary INTEGER)
NOT FINAL;
/
CREATE TYPE part_time_emp_t UNDER employee_t (num_hrs INTEGER);
/Snowflake
Known Issues
1. Create Type creation options are not supported
Related EWIs
Last updated