| От | Tom Lane |
|---|---|
| Тема | Re: find column OID types with information schema? |
| Дата | |
| Msg-id | 5926.1240849781@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: find column OID types with information schema? (Whit Armstrong <armstrong.whit@gmail.com>) |
| Ответы |
Re: find column OID types with information schema?
|
| Список | pgsql-general |
Whit Armstrong <armstrong.whit@gmail.com> writes:
> However, there is no example that uses a schema + tablename.
If you're into masochism you can do that with a join of pg_class and
pg_namespace. But what's usually easier for one-off queries is to
use the regclass converter:
select attname, atttypid from pg_attribute
where attrelid = 'myschema.mytable'::regclass;
Most likely you'll also want
... and attnum > 0 and not attisdropped
to keep down the clutter.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера