I
I
impressive172021-09-05 22:54:09
PostgreSQL
impressive17, 2021-09-05 22:54:09

How to get a DDL query to create a similar table by table in postgres?

There is a table. Is it possible to get a DDL request to create exactly the same?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-09-05
@impressive17

pg_dump -t 'schema-name.table-name' --schema-only database-name

https://stackoverflow.com/questions/2593803/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question