| От | Richard Huxton |
|---|---|
| Тема | Re: Change column data type |
| Дата | |
| Msg-id | 200309050915.18531.dev@archonet.com обсуждение исходный текст |
| Ответ на | Change column data type ("Senthil Kumar S" <ssakkaravel@ivesia.com>) |
| Список | pgsql-sql |
On Tuesday 02 September 2003 10:50, Senthil Kumar S wrote: > Dear Friends, > > Using Postgres 7.3.4 over the linux server 7.3. > > Is it possible to alter/change the data type of a existing table's column, > with out dropping and recreating a column of same name. > > Thanks for ur knowledge sharing. If you mean changing a varchar to a date or int4 to text, then no. If you want to change the size of a varchar field, people seem to have done that in the past (check the archives for details). Otherwise, you'll have to wrap the drop/recreate in a transaction along with whatever supporting updates you need. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера