Append a list of tables to an empty table to form a whole table

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема Append a list of tables to an empty table to form a whole table
Дата
Msg-id CA+i5JwaD2rz-jJdm9_SK=88z=J0SDNmij98hMZxCwLuHxbz2Mw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Append a list of tables to an empty table to form a whole table
Список pgsql-sql


How best to append a list of tables to an empty table to form a whole table?

Pseudo codes show the desirable logic.



There are a list of tables with exactly same colums
table_a
table_b
table_c

Create an empty table  emp_table

Foreach a_name in ARRAY ARRAY['table_a', 'table_b', 'table_c'] loop
   insert into em_table as select * from table a_name

end loop;

Can something like that be done is PostGIS?

Regards,

David

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

Предыдущее
От: Frank Gard
Дата:
Сообщение: Re: How to union all tables in a schema into one whole table?
Следующее
От: Frank Gard
Дата:
Сообщение: Re: Append a list of tables to an empty table to form a whole table