Alters the properties or policies of a precomputed result set.
alter {precomputed result set | materialized view} [owner_name.]prs_name [{immediate | manual } refresh] [enable | disable] [{enable | disable } use in optimization]
immediate – (the default) the precomputed result set is updated during the same transaction that updates the base tables.
manual – the precomputed result set is explicitly updated. When you use the manual parameter, updates to the base tables are not reflected in the precomputed result set until you explicitly issue refresh. Because precomputed result sets set to manual are not maintained, the SAP ASE server considers them to be stale, even after you issue the refresh parameter, and therefore the query processor selects this data for query rewrite only if the query accepts stale data.
enable – (the default) the precomputed result set is available for operations. Only precomputed result sets configured for enable are maintained according to their refresh policy.
Used for the query rewrite during optimization, whether or not you specify use in optimization.
Populated, whether or not you specify with populate.
immediate – considered for all queries.
manual – considered only if the query accepts stale data.
alter precomputed result set authors_prs immediate refresh
Precomputed result sets are automatically refreshed when you change them from a manual to an immediate refresh policy.
If the base table or view on which the precomputed result set is based is dropped or altered, the precomputed result set is automatically altered to disable.
You must be the precomputed result set owner to execute the alter command.