How to Duplicate a Table in Redshift

Last updated July 25, 2026 · By the SaturnSQL team

For a deep copy, CREATE TABLE new (LIKE old) preserves DISTKEY, SORTKEY, and encodings, then INSERT ... SELECT copies the rows. CREATE TABLE AS is shorter but does not inherit keys unless you declare them.

Deep copy that keeps keys and encodings

CREATE TABLE orders_backup (LIKE orders);
INSERT INTO orders_backup SELECT * FROM orders;

Quick copy with CTAS

CREATE TABLE orders_copy
DISTKEY (customer_id)
SORTKEY (created_at)
AS SELECT * FROM orders;

The deep-copy pattern is also the standard fix for a badly fragmented or wrongly keyed table: copy into a fresh table, drop the original, and rename the copy.

Run this in SaturnSQL

SaturnSQL is a browser-based SQL editor for teams: shared query library, schema-aware autocomplete, and scheduled exports to Google Sheets and Slack.

Try it free

Related Redshift guides

© 2026 Panda Capital Oy Ab. All rights reserved.