Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Unique Index on a view
>CREATE TABLE a (a NUMBER(8));
Table created.
>CREATE TABLE b (a NUMBER(8));
Table created.
> CREATE VIEW c AS SELECT a FROM a UNION ALL SELECT a FROM b;
View created.
> CREATE UNIQUE INDEX d ON c(a);
CREATE UNIQUE INDEX d ON c(a)
*
Is there a way to achieve such a constraint?
Brian Received on Tue Nov 21 2000 - 14:49:48 CST
![]() |
![]() |