Re: Change of data type - Mailing list pgsql-sql

From jason nordwick
Subject Re: Change of data type
Date
Msg-id 44D7A5F9.10706@adapt.com
Whole thread Raw
In response to Change of data type  (Judith <jaltamirano@correolux.com.mx>)
List 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 by date:

Previous
From: Judith
Date:
Subject: Change of data type
Next
From: Roman Neuhauser
Date:
Subject: Re: Change of data type