Re: How to append tables in a view

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: How to append tables in a view
Дата
Msg-id 45D1839F.3060907@magproductions.nl
обсуждение исходный текст
Ответ на How to append tables in a view  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
Список pgsql-general
Ashish Karalkar wrote:
> Hello List,
>
> I want to append column of two different tables in a single column of  a view .
>
> data type of tow column of two diffrent tables will be same.
>
> WHAT I WANT TO DO IS:
>
>       Table 1
>       ID DESC
>       1 A
>       2 B
>       3 C
>
>       Table 2
>       ID DESC
>       1 D
>       2 E
>       3 F
>
>       View(Table1|| Table 2)
>       ID_view Desc
>
>       1 A
>       2 B
>       3 C
>       4 D
>       5 E
>       6 F
>
> Is there any way???

Looks like a UNION ALL to me.

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
   7500 AK Enschede

// Integrate Your World //

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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: Testing embedded SQL in C
Следующее
От: Shane Ambler
Дата:
Сообщение: Re: How to append tables in a view