Re: Are there commands to enquire about table structure?
В списке pgsql-general по дате отправления:
| От | Doug McNaught |
|---|---|
| Тема | Re: Are there commands to enquire about table structure? |
| Дата | |
| Msg-id | 87y8rnqulp.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
| Ответ на | Re: Are there commands to enquire about table structure? ("Ben" <reply@to-the-newsgroup.com>) |
| Список | pgsql-general |
"Ben" <reply@to-the-newsgroup.com> writes: > On Sat, 31 Jan 2004 02:22:09 +0000, Lee Harr wrote: > >> In 7.4 anyhow, I bet you can do much of this with the >> information_schema. This one would be ... >> >> SELECT count(*) >> FROM information_schema.columns >> WHERE table_name='mytable'; > > Sounds very good; however, the DB in question is 7.3.2 - no such namespace > exists there. If we can get the IP people to sign off on upgrading, I'll > look into this mechanism. We've got megabytes of SQL designed for > Postgres, though, and any changes have to be vetted against the whole > system before we can use them, something that takes many months. For 7.3, the info you need is available in the system catalogs, which have a somewhat hairier layout than the SQL-standard information_schema. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера