Skip to content

Instantly share code, notes, and snippets.

@JuzerShakir
Created June 24, 2022 06:11
Show Gist options
  • Save JuzerShakir/24526fecb3e38c3ad928c25bfc12b6e1 to your computer and use it in GitHub Desktop.
Save JuzerShakir/24526fecb3e38c3ad928c25bfc12b6e1 to your computer and use it in GitHub Desktop.
Create a duplicate table from an existing table without any data:
CREATE TABLE dup_countries
AS SELECT *
FROM countries
WITH NO DATA;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment