DB2 - Exemplos simples - ALTER VIEW



Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

DB2 - Exemplos simples - ALTER VIEW

The ALTER VIEW statement regenerate an existing view by altering a reference type column to add a scope.
The ALTER VIEW statement also enables or disables a view for use in query optimization.
Following is the view alteration syntax.

A instrução ALTER VIEW regenera uma visão existente alterando uma coluna de tipo de referência para adicionar um escopo.
A instrução ALTER VIEW também ativa ou desativa uma visualização para uso na otimização de consulta.
A seguir está a sintaxe de alteração de visão.

    ALTER VIEW view-name
          ALTER column column-name ADD SCOPE table-name
               [ENABLE/DISABLE QUERY OPTIMIZATION]

You use the ALTER VIEW command to regenerate an invalid view after altering one of the base tables to ensure that the view continues to be valid.
Use o comando ALTER VIEW para gerar novamente uma exibição inválida após alterar uma das tabelas base para garantir que a exibição continue válida.