我正在使用对象关系数据库
create table A of A_type;
create table B of B_type;
create type C_type as object(
A_ref ref A_type,
B_ref ref B_type);
create tabel C of C_type;
alter table C add (scope for (A_ref ) is A);
alter table C add (scope for (B_ref ) is B);
- 以下脚本失败 -
alter table C add constraint uniqueCheck unique( B_ref );
如果列(B_ref)由对象组成,我如何确保列(B_ref)是唯一的?
触发器?