| От | Chris |
|---|---|
| Тема | Re: checking data type |
| Дата | |
| Msg-id | 442B2F92.2070304@gmail.com обсуждение исходный текст |
| Ответ на | checking data type ("raj" <royuco77@yahoo.com>) |
| Ответы |
Re: checking data type
|
| Список | pgsql-general |
raj wrote: > is there a function that could check for a variable's data type? like > i want to check all the columns of a table and if i found a column with > an integer data type i set it to a default 1 and i'll set a constant > to a column of type text. You could start psql with -E: psql -d dbname -E run \d <tablename> and use the queries that postgres runs to work it out.. There could be a simpler way though in the system catalogues (anyone?). I should ask why you need this info ;) -- Postgresql & php tutorials http://www.designmagick.com/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера