| От | Jesper Krogh |
|---|---|
| Тема | Retrieve columntypes and checks? |
| Дата | |
| Msg-id | clqhii$pf6$1@sea.gmane.org обсуждение |
| Ответы |
Re: Retrieve columntypes and checks?
Re: Retrieve columntypes and checks? Re: Retrieve columntypes and checks? |
| Список | pgsql-novice |
Trying to convert an application from MySQL to PostgreSQL I ran into some troubles.. In MySQL is it quite easy to find out which type a column is.. in particular if a column is an "enum" so the webapplication can do appropiate checks in javascript in advance for an insert. In PostgreSQL the enum's are converted to varchar with checks, so I need to get a hold on the column-type and if it's a varchar parse the check string for values.. How do I do that? Any better suggestions? Thanks. -- ./Jesper Krogh, jesper@krogh.cc
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера