.\" This is -*-nroff-*- .\" XXX standard disclaimer belongs here.... .\" $Header: /usr/local/cvsroot/pgsql/src/man/create_view.l,v 1.3 1998/01/11 22:17:22 momjian Exp $ .\" Translated by Mitsuhiro Maeda (mitsu@cni.co.jp) .TH "CREATE VIEW" SQL 11/05/95 日本語PostgreSQL 日本語PostgreSQL .SH 名称 .\" create view - construct a virtual class create view - 仮想クラスを作ります .SH 形式 .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 説明 .\" .BR "create view" .\" will define a view of a class. .BR "create view" はあるクラスのVIEW表を定義します。 .\" This view is not physically .\" materialized; この VIEW 表は物理的にはありません。 .\" instead the rule system is used to support view .\" processing as in [STON90]. その代わり [STON90] にあるように、 ルールシステムが VIEW 表の処理に使用されます。 .\" Specifically, a query rewrite retrieve .\" rule is automatically generated to support retrieve operations on .\" views. つまり、問い合わせのリライト検索ルールが自動的に生成されて、 VIEW 表への検索の実行がサポートされます。 .\" Then, the user can add as many update rules as desired to .\" specify the processing of update operations to views. それで、ユーザは VIEW 表への更新処理を指定するのに、 望むだけの更新ルールを加えることができるのです。 .\" See [STON90] .\" for a detailed discussion of this point. この点に関しては [STON90] を参照してください。 .SH 例 .nf -- .\" --create a view consisting of toy department employees -- 玩具売場の従業員からなる VIEW 表を作成します -- create view toyemp as select e.name from emp e where e.dept = 'toy' .fi .nf -- .\" --Specify deletion semantics for toyemp -- toyemp に対する削除のセマンティックを指定します -- create rule example1 as on delete to toyemp do instead delete emp where emp.oid = current.oid .fi .SH 参照 create table(l), create rule(l),