From: jason nordwick <jason@adapt.com>
To: Judith <jaltamirano@correolux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: Change of data type
Date: Mon, 07 Aug 2006 13:43:37 -0700
Message-ID: <44D7A5F9.10706@adapt.com> (raw)
In-Reply-To: <44D77A8C.9040303@correolux.com.mx>
References: <44D77A8C.9040303@correolux.com.mx>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jason@adapt.com, jaltamirano@correolux.com.mx
Subject: Re: Change of data type
In-Reply-To: <44D7A5F9.10706@adapt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox