Re: Change of data type

Поиск
Список
Период
Сортировка
От jason nordwick
Тема Re: Change of data type
Дата
Msg-id 44D7A5F9.10706@adapt.com
обсуждение исходный текст
Ответ на Change of data type  (Judith <jaltamirano@correolux.com.mx>)
Список pgsql-sql
On pg8, to change tab.col to type t:
 alter table tab alter column col type t

so: alter table tab alter column material type text

-j


Judith wrote:

>    Hello everybody, excuse me how can I change de data type of a 
> field, I currently have:
>      material character(30) 
>    but I now want the field in text type like this:
>  
>    material  text
>
>    somebody knows if ALTER TABLE has some option to do this?, or How 
> can I do that?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>



В списке pgsql-sql по дате отправления:

Предыдущее
От: Judith
Дата:
Сообщение: Change of data type
Следующее
От: Roman Neuhauser
Дата:
Сообщение: Re: Change of data type