File: create_view.l.html

package info (click to toggle)
mpsql 2.0-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 2,912 kB
  • ctags: 5,665
  • sloc: ansic: 34,322; makefile: 3,525; sh: 17
file content (65 lines) | stat: -rw-r--r-- 2,245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!-- manual page source format generated by PolyglotMan v3.0.4, -->
<!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->

<HTML>
<HEAD>
<TITLE>"CREATE(VIEW") manual page</TITLE>
</HEAD>
<BODY>
<A HREF="sql.html">SQL Reference Contents</A>
 
<H2><A NAME="sect0" HREF="#toc0">NAME </A></H2>
create view - construct a virtual class  
<H2><A NAME="sect1" HREF="#toc1">SYNOPSIS </A></H2>
<B>create view </B> view_name 
<B>as </B> <BR>
 <tt> </tt><tt> </tt><B>select </B> expression1 [<B>as </B> attr_name1] <BR>
 <tt> </tt><tt> </tt>{, expression_i [<B>as </B> attr_namei]} 
<BR>
 <tt> </tt><tt> </tt>[<B>from </B> from.last] <BR>
 <tt> </tt><tt> </tt>[<B>where </B> qual] <BR>
  
<H2><A NAME="sect2" HREF="#toc2">DESCRIPTION </A></H2>
<B>create view</B> 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.  
<H2><A NAME="sect3" HREF="#toc3">EXAMPLE </A></H2>
-- <BR>
 --create a view consisting 
of toy department employees <BR>
 -- <BR>
 create view toyemp as <BR>
   <tt> </tt><tt> </tt>select e.name <BR>
 
<tt> </tt><tt> </tt>from emp e <BR>
 <tt> </tt><tt> </tt>where e.dept = 'toy' <BR>
 -- <BR>
 --Specify deletion semantics for toyemp 
<BR>
 -- <BR>
 create rule example1 as <BR>
 <tt> </tt><tt> </tt>on delete to toyemp <BR>
 <tt> </tt><tt> </tt>do instead delete emp 
<BR>
 <tt> </tt><tt> </tt>where emp.oid = current.oid <BR>
  
<H2><A NAME="sect4" HREF="#toc4">SEE ALSO </A></H2>
create <A HREF="table.l.html">table(l)</A>
,  create <A HREF="rule.l.html">rule(l)</A>
, 
<P>

<HR><P>
<A NAME="toc"><B>Table of Contents</B></A><P>
<UL>
<LI><A NAME="toc0" HREF="#sect0">NAME</A></LI>
<LI><A NAME="toc1" HREF="#sect1">SYNOPSIS</A></LI>
<LI><A NAME="toc2" HREF="#sect2">DESCRIPTION</A></LI>
<LI><A NAME="toc3" HREF="#sect3">EXAMPLE</A></LI>
<LI><A NAME="toc4" HREF="#sect4">SEE ALSO</A></LI>
</UL>
</BODY></HTML>