Re: view creation question

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: view creation question
Дата
Msg-id 20060309160705.GA70671@winnie.fuhr.org
обсуждение исходный текст
Ответ на view creation question  ("Larry White" <ljw1001@gmail.com>)
Список pgsql-general
On Thu, Mar 09, 2006 at 10:55:12AM -0500, Larry White wrote:
> I need a read only view that concatenates data from two tables. Basically
> both tables would need a simple query like
>
> Select name, description, date from Tasks;
>
> Select name, description, date from Issues;
>
> Is there some way to wrap these two independent queries in a "CREATE VIEW
> myview AS" statement?

Use UNION or UNION ALL.

http://www.postgresql.org/docs/8.1/interactive/queries-union.html

--
Michael Fuhr

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

Предыдущее
От: "Larry White"
Дата:
Сообщение: view creation question
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: view creation question