Re: Change of data type

From: jason nordwick <jason(at)adapt(dot)com>
To: Judith <jaltamirano(at)correolux(dot)com(dot)mx>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Change of data type
Date: 2006-08-07 20:43:37
Message-ID: 44D7A5F9.10706@adapt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kumar Dev 2006-08-07 20:45:43 Re: Change of data type
Previous Message George Young 2006-08-07 19:20:31 Re: viewing the description of tables from python DB-API