PostgreSQL SQL

From annawiki
Revision as of 2023-04-04T19:11:12 by Tobiasco (talk | contribs) (Created page with "Copy table, but not an exact copy, e.g. indexes not copied <pre> CREATE TABLE new_tab_name AS TABLE existing_tab_name </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Copy table, but not an exact copy, e.g. indexes not copied

CREATE TABLE new_tab_name AS TABLE existing_tab_name