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

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Aw: How to union all tables in a schema into one whole table?
Date: 2022-10-13 17:06:07
Message-ID: trinity-00342a1e-9525-4a6f-85ac-dd8e41693675-1665680767244@3c-app-gmx-bs26
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>You can use a view, a select with union, or appropriate DDL.</div>

<div>&nbsp;</div>

<div>Karsten</div>

<div>&nbsp;
<div>&nbsp;
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Donnerstag, 13. Oktober 2022 um 19:02 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Shaozhong SHI&quot; &lt;shishaozhong(at)gmail(dot)com&gt;<br/>
<b>An:</b>&nbsp;&quot;pgsql-sql&quot; &lt;pgsql-sql(at)lists(dot)postgresql(dot)org&gt;<br/>
<b>Betreff:</b>&nbsp;How to union all tables in a schema into one whole table?</div>

<div name="quoted-content">
<div>A series of table like tttt.table1, ttt.table2 has been generated in the schema ttt.
<div>&nbsp;</div>

<div>How best to union all these tables into a whole one?</div>

<div>&nbsp;</div>

<div>They have the exact same columns.</div>

<div>&nbsp;</div>

<div>Regards,</div>

<div>&nbsp;</div>

<div>David</div>
</div>
</div>
</div>
</div>
</div></div></body></html>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Frank Gard 2022-10-13 17:17:00 Re: How to union all tables in a schema into one whole table?
Previous Message Shaozhong SHI 2022-10-13 17:02:03 How to union all tables in a schema into one whole table?