create duplicate table postgres

Solutions on MaxInterview for create duplicate table postgres by the best coders in the world

showing results for - "create duplicate table postgres"
Deja
17 Sep 2020
1create table dupe_users as (select * from users);
2
3-- The `with no data` here means structure only, no actual rows
4create table dupe_users as (select * from users) with no data;