Alter Mvgroup Statement; Considerations For Alter Mvgroup; Example Of Alter Mvgroup - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

ALTER MVGROUP Statement

"Syntax Description of ALTER MATERIALIZED VIEW"
"Considerations for ALTER MATERIALIZED VIEW"
The ALTER MVGROUP statement allows you to add or remove a member from the materialized
view group (MVGROUP). The ADD clause should be used when adding one or more MVs to
the MVGROUP. The REMOVE clause should be used when removing one or more MVs from
an MVGROUP.
For information on MVGROUPS, see
ALTER MVGROUP mv-group-name
{ADD mv-name [, mv-name] ... |
REMOVE mv-name [, mv-name]...}
mv-group-name
specifies the materialized view group name to alter.
mv-name
specifies the ANSI logical name for the materialized view.

Considerations for ALTER MVGROUP

Only ON REQUEST and RECOMPUTE MV can be added to a materialized view group. ON
STATEMENT MV is not allowed to participate in a group.
A materialized view is allowed to participate in a group only if:
— all materialized views directly or indirectly used by the materialized view are in the
group, or
— the materialized view is a single-delta materialized view. See
VIEW Statement" (page 60)

Example of ALTER MVGROUP

This example adds a member to the materialized view group:
ALTER MVGROUP pgroup
ADD pgroups
This example removes a member from the materialized view group:
ALTER MVGROUP pgroup
REMOVE pgroups
"MVGROUPs " (page
for information on single-delta materialized views.
254).
"CREATE MATERIALIZED
ALTER MVGROUP Statement
45

Advertisement

Table of Contents
loading

Table of Contents