Create Primary Key on View
From: js <androidsun_at_yahoo.com>
Date: 8 Oct 2003 16:00:19 -0700
Message-ID: <23869fd0.0310081500.21e0d68b_at_posting.google.com>
]...
)
| object_view_clause
]
AS subquery [subquery_restriction_clause];
}
constraint_state
Date: 8 Oct 2003 16:00:19 -0700
Message-ID: <23869fd0.0310081500.21e0d68b_at_posting.google.com>
/*******************************************************************************Thefollowing is description from Oracle9i Application Developer's Guide - Fundamentals Release 1 (9.0.1) for creating a view.
*******************************************************************************/
CREATE [OR REPLACE] [[NO] FORCE] VIEW [schema .] view [ ( { alias [column_constraint [column_constraint]...]
| table_or_view_constraint
}
[, { alias column_constraint [column_constraint]...
| table_or_view_constraint }
]...
)
| object_view_clause
]
AS subquery [subquery_restriction_clause];
table_or_view_constraint::=
[CONSTRAINT constraint]
{ UNIQUE ( column [, column]... )
| PRIMARY KEY ( column [, column]... ) | FOREIGN KEY ( column [, column]... ) references_clause | CHECK ( condition )
}
constraint_state
constraint_state::=
[ [[NOT] DEFERRABLE] [INITIALLY { IMMEDIATE | DEFERRED }]
| [INITIALLY { IMMEDIATE | DEFERRED }] [[NOT] DEFERRABLE]
]
[ RELY | NORELY ] [using_index_clause] [ ENABLE | DISABLE ]
[ VALIDATE | NOVALIDATE ] [exceptions_clause]
Received on Thu Oct 09 2003 - 01:00:19 CEST