Re: Get the table creation DDL

Поиск
Список
Период
Сортировка
От Mladen Gogala
Тема Re: Get the table creation DDL
Дата
Msg-id ff439ee6-66f7-9b8d-d552-592e19547552@gmail.com
обсуждение исходный текст
Ответ на Re: Get the table creation DDL  (Igor Korot <ikorot01@gmail.com>)
Ответы Re: Get the table creation DDL  (Igor Korot <ikorot01@gmail.com>)
Список pgsql-general
On 7/10/22 12:47, Igor Korot wrote:
So there is no "query" per se?
Also how do I pass the table name?

Thank you.

You can create one from the catalog tables. Personally, I would use INFORMATION_SCHEMA to avoid pg_class and pg_attribute. However, there is an extension which does that for you. Somebody else has already done the hard work.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Igor Korot
Дата:
Сообщение: Re: Get the table creation DDL
Следующее
От: Igor Korot
Дата:
Сообщение: Re: Get the table creation DDL