Problem with createview

From: Diogo Biazus <diogo(at)ikono(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem with createview
Date: 2002-10-04 14:29:10
Message-ID: 3D9DA5B6.6000209@ikono.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I trying to create a view with the following SQL:

select
*
from
((agendasbusca
inner join usuarios on usuarios.codusuario = agendasbusca.codusuario)
inner join gruposusuario on gruposusuario.codgrupousuario =
usuarios.codgrupousuario)
left join buscas on agendasbusca.codagendabusca = buscas.codagendabusca

And I'm getting this error:

ERROR: CREATE TABLE: attribute "codagendabusca" duplicated

But I don't want to specify each field in the query, because I would
have to re-create the view on every change made on the source tables.
Is there any way to create the view in this way?

--
Diogo de Oliveira Biazus
diogo(at)ikono(dot)com(dot)br
Ikono Sistemas e Automação
http://www.ikono.com.br

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2002-10-04 14:31:15 Re: Error after updating postgresql
Previous Message Chris Bowlby 2002-10-04 14:27:27 pg_restore issue..