如何在复合类型的子字段上创建约束?
伪代码
create type axis(
major_axis float,
minor_axis float,
angle float constraint angle_constraint check(angle between -90 and 90)
);
create table sample(
axis1 axis,
axis2 axis
);
Run Code Online (Sandbox Code Playgroud)