The following restrictions apply when creating, initializing, refreshing, and view matching materialized views:
When creating a materialized view, the definition for the materialized view must define column names explicitly; you cannot
SELECT * construct as part of the column definition.
Do not include columns defined as TIMESTAMP WITH TIME ZONE in the materialized view. The value of the time_zone_adjustment option varies between connections based on their location and the time of year, resulting in incorrect results and unexpected behavior.
When creating a materialized view, the definition for the materialized view cannot contain:
references to other views, materialized or not
references to remote or temporary tables
variables such as CURRENT USER; all expressions must be deterministic
calls to stored procedures, user-defined functions, or external functions
Transact-SQL outer joins
FOR XML clauses
The following database options must have the specified settings when a materialized view is created; otherwise, an error is returned. These database option values are also required for the view to be used by the optimizer:
The following database option settings are stored for each materialized view when it is created. The current option values for the connection must match the values stored for a materialized view in order for the view to be used in optimization:
When a view is refreshed, the connection settings for all the options listed in the bullets above are ignored. Instead, the database option settings (which must match the stored settings for the view) are used.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|