Entering content frame

 VIEWS 

Using the system table VIEWS, you can determine the following database information, among other things:

·        All privileges of your own view table MYVIEW
SELECT privileges
  FROM DOMAIN.VIEWS
    WHERE owner = user
      AND viewname = 'MYVIEW'

·        All view tables and their comments that the current user can see without being the owner
SELECT owner, viewname, comment
  FROM DOMAIN.VIEWS
    WHERE owner <> user

Definition text of a view table: see VIEWDEFS

Existence of a view table: see TABLES

Synonym for a view table: see SYNONYMS

Tables and columns forming the basis for a view table: see VIEWCOLUMNS

 

Leaving content frame