PL/SQL constraint 求教?# Database - 数据库
f*e
1 楼
现在我有type point and type line, table polygons(多边形)如下:
create or replace type Point as object(
X float,
Y float
);
/
create or replace type Line as object(
SP point, -- start point
EP point -- end point
);
/
create or replace type LineTableType as
table of Line;
/
create table Polygons(
PID integer,
Lines LineTableType
)
nested table Lines store as LinesTable;
ÏÖÔÚ因为所有µÄµã¶¼&
Ocirc;ÚµÚ1象限£
create or replace type Point as object(
X float,
Y float
);
/
create or replace type Line as object(
SP point, -- start point
EP point -- end point
);
/
create or replace type LineTableType as
table of Line;
/
create table Polygons(
PID integer,
Lines LineTableType
)
nested table Lines store as LinesTable;
ÏÖÔÚ因为所有µÄµã¶¼&
Ocirc;ÚµÚ1象限£