Re: Duplicate Fields + Views Questions

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Duplicate Fields + Views Questions
Дата
Msg-id 20061104001858.29178.qmail@web31808.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Duplicate Fields + Views Questions  ("Dylan Lorimer" <edylan@google.com>)
Ответы Re: Duplicate Fields + Views Questions
Список pgsql-sql
> I've got 2 views - each with identical column names. I want to create an
> aggregate view of both tables as a new view. But when I try to do this I
> understandably get errors on duplicate fields.
> 
> As an example:
> 
> CREATE VIEW gnis_view AS SELECT * FROM gnis_international_view,
> gnis_usa_view;
> ERROR:  column "the_geom" duplicated
> ERROR:  column "the_geom" duplicated
> 
> Any ideas on how I can achieve what I am seeking

Yes but you will have to specify each column name from each table and create aliases for the
duplicated columns.

Regards,

Richard Broersma Jr.


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Dylan Lorimer"
Дата:
Сообщение: Duplicate Fields + Views Questions
Следующее
От: "Dylan Lorimer"
Дата:
Сообщение: Re: Duplicate Fields + Views Questions