| От | René Romero Benavides |
|---|---|
| Тема | Re: describe command for |
| Дата | |
| Msg-id | 4FD25608.1060603@gmail.com обсуждение исходный текст |
| Ответ на | describe command for ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>) |
| Список | pgsql-general |
Use pg_dump , you can define for what tables you want it to generate ddl for (check the -n and -t options) . If you pass it a -s OR --schema-only it will only dump data definitions (ddl).Is there a postgres sql command/function that will display an object ddl?
I know of the psql metacharacters, but don’t know how I’d submit from a non-psql client like sqldbx.
I see that pgadmin generates a query and then formats into a ddl statement, but this seems like a lot of work for something that I would expect to be part of the command set.
Thanks
Doug Little
Sr. Data Warehouse Architect | Business Intelligence Architecture | Orbitz Worldwide
500 W. Madison, Suite 1000 Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741
orbitz.com | ebookers.com | hotelclub.com | cheaptickets.com | ratestogo.com | asiahotels.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера
