How to Change a View

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
marcos.santos
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Wed, 01 Oct 2008 7:39 pm
Location: Jundiaí
Contact:

I created a view based on the sale and customer tables however now I changed the client table by adding a CNPJ column that is a candidate key and would like to include change also in the view.
I would like to know how this procedure.


Thanks!

Environment information:
* Oracle version: 10g
* Operating system: XP
: -O
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

You have to re-create the view.

Select all

CREATE OR REPLACE VIEW nomedaview AS select bla bla bla etc
hence adds the new field in the View SQL.
marcos.santos
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 13
Joined: Wed, 01 Oct 2008 7:39 pm
Location: Jundiaí
Contact:

Thank you very much, my friend!
Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 1 guest