| От | Stephan Szabo |
|---|---|
| Тема | Re: system catalog and varchar datatype |
| Дата | |
| Msg-id | 20040719142656.Y95062@megazone.bigpanda.com обсуждение исходный текст |
| Ответ на | system catalog and varchar datatype ("sandra ruiz" <mileruiz@hotmail.com>) |
| Ответы |
Re: system catalog and varchar datatype
|
| Список | pgsql-general |
On Mon, 19 Jul 2004, sandra ruiz wrote: > hi, I need to find out the length of a varchar attribute .. > > for example,if a I have an atribute "description varchar(256)" I would > expect to see this "256" in the pg_attribute table. > > there's is an "attlen" In the pg_attribute but this doesn't give any > information Atttypmod gives this information, but the value is datatype specific. For varchar (and char) at least, the atttypmod is 4 greater than the maximum length, so atttypmod for the above would be 260.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера