Can we generate a series of tables in a loop and then use another loop to union all?

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема Can we generate a series of tables in a loop and then use another loop to union all?
Дата
Msg-id CA+i5JwaYSOw=aAQcNH3M22VkzKBhcf9pyG4VTKG3yCe-r41Sxg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Can we generate a series of tables in a loop and then use another loop to union all?
Список pgsql-sql
Can we do the following?

for j in 1..max loop
create table j as select .............
end loop;

Then,  We do 


Alternatively, can we generate an empty table and append each newly generated table to it so that we end up with a whole table?

Regards,

David

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

Предыдущее
От: Peter Hendriks
Дата:
Сообщение: Re: Delete from locking ordering differences
Следующее
От: Frank Gard
Дата:
Сообщение: Re: Can we generate a series of tables in a loop and then use another loop to union all?