Skip to article frontmatterSkip to article content

SQL recipes

Create copy of a table

Oracle
PostgreSQL
CREATE TABLE new_table AS
SELECT * FROM existing_table;