Re: Is it possible to query the database for the values of an enumerated type in 8.3.3?
В списке pgsql-novice по дате отправления:
| От | Nagle, Gail A \(US SSA\) |
|---|---|
| Тема | Re: Is it possible to query the database for the values of an enumerated type in 8.3.3? |
| Дата | |
| Msg-id | 7b4c32$1n2q38@dmzms99801.na.baesystems.com обсуждение исходный текст |
| Ответ на | Is it possible to query the database for the values of an enumerated type in 8.3.3? ("Nagle, Gail A \(US SSA\)" <gail.nagle@baesystems.com>) |
| Список | pgsql-novice |
Hello Larsen, Thank you! This displays the values as an array of strings. Enum is a better search string in the manual than enumerate(d) or enumeration. Best regards, -Gail -----Original Message----- From: Anders Larsen [mailto:Anders.Larsen@framestore.com] Sent: Thursday, December 18, 2008 3:01 AM To: Nagle, Gail A (US SSA) Cc: pgsql-novice@postgresql.org Subject: Re: [NOVICE] Is it possible to query the database for the values of an enumerated type in 8.3.3? Nagle, Gail A (US SSA) wrote: > > Is it possible to query the database (e.g. from psql or from the pgAdmin > III Query tool) for the enumerated values in the newly added user > defined type? > Try this query: select enum_range(null::some_type_name); More information can be found here: http://www.postgresql.org/docs/8.3/static/functions-enum.html
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера