in postgres sql SHOW CREATE TABLE stores;. code example Example: show create table in postgresql pg_dump -t 'schema-name.table-name' --schema-only database-name