|
A consulta abaixo encontra todas as visualizações em um banco de dados com seu script.
Query below finds all views in a database with their script.
Consulta - Query
SELECT VIEWSCHEMA AS SCHEMA_NAME
, VIEWNAME AS VIEW_NAME
, TEXT AS DEFINITION
FROM SYSCAT.VIEWS
WHERE VIEWSCHEMA NOT LIKE 'SYS%'
ORDER BY SCHEMA_NAME, VIEW_NAME
|
Colunas
- schema_name - nome do esquema da visualização
- view_name - nome da visão
- definição - definição (script) da vista
Linhas
- Uma linha representa uma vista
- Escopo das linhas: todas as visualizações encontradas
- Ordenado pelo nome do esquema, nome da vista
|
Columns
- schema_name - schema name of the view
- view_name - name of the view
- definition - definition (script) of the view
Rows
- One row represents a view
- Scope of rows: all found views
- Ordered by schema name, view name
|
Resultado - Sample results

Copyright © Dataedo.
|