head	1.2;
access;
symbols
	SUPPORT:1.1.1.1
	PG95-DIST:1.1.1;
locks; strict;
comment	@ * @;


1.2
date	96.11.14.10.14.05;	author scrappy;	state dead;
branches;
next	1.1;

1.1
date	96.08.18.22.14.22;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.08.18.22.14.22;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Removed man pages...moved to src/man

Requested by Bryan
@
text
@.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /usr/local/cvsroot/postgres95-support/doc/man/create_view.l,v 1.1 1996/08/18 22:14:22 scrappy Exp scrappy $
.TH "CREATE VIEW" SQL 11/05/95 Postgres95 Postgres95
.SH NAME
create view \(em construct a virtual class
.SH SYNOPSIS
.nf
\fBcreate view\fR view_name \fBas\fR
	\fBselect\fR expression1 [\fBas\fR attr_name1]
	{, expression_i [\fBas\fR attr_namei]}
	[\fBfrom\fR from.last]
	[\fBwhere\fR qual]
.fi
.SH DESCRIPTION
.BR "create view"
will define a view of a class.  This view is not physically
materialized; instead the rule system is used to support view
processing as in [STON90].  Specifically, a query rewrite retrieve
rule is automatically generated to support retrieve operations on
views.  Then, the user can add as many update rules as desired to
specify the processing of update operations to views.  See [STON90]
for a detailed discussion of this point.
.SH EXAMPLE
.nf
--
--create a view consisting of toy department employees
--
create view toyemp as
  	select e.name
	from emp e
	where e.dept = 'toy'
.fi
.nf
--
--Specify deletion semantics for toyemp
--
create rule example1 as
	on delete to toyemp
	do instead delete emp
	where emp.oid = current.oid
.fi
.SH "SEE ALSO"
create table(l), 
create rule(l),
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
.\" $Header: /usr/local/cvsroot/postgres95/doc/man/create_view.l,v 1.6 1996/07/31 18:42:47 scrappy Exp $
@


1.1.1.1
log
@Support Docs & Contrib
@
text
@@
