How to union all tables in a schema into one whole table?

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: How to union all tables in a schema into one whole table?
Date: 2022-10-13 17:02:03
Message-ID: CA+i5JwaHBw59OWB-c6gbu==9kOGeGxDN=eZ5QN40=RxeXR1Vjg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

A series of table like tttt.table1, ttt.table2 has been generated in the
schema ttt.

How best to union all these tables into a whole one?

They have the exact same columns.

Regards,

David

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Karsten Hilbert 2022-10-13 17:06:07 Aw: How to union all tables in a schema into one whole table?
Previous Message Frank Gard 2022-10-13 16:50:02 Re: Can we generate a series of tables in a loop and then use another loop to union all?