X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BC0609FB228 for ; Mon, 7 Aug 2006 17:43:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 71329-05 for ; Mon, 7 Aug 2006 17:43:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 063109FB1EF for ; Mon, 7 Aug 2006 17:43:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from gp1.adapt.com (dsl092-051-200.lax1.dsl.speakeasy.net [66.92.51.200]) by svr4.postgresql.org (Postfix) with ESMTP id E16235AF027 for ; Mon, 7 Aug 2006 20:43:48 +0000 (GMT) Received: from [127.0.0.1] (unknown [192.168.2.209]) by gp1.adapt.com (Postfix) with ESMTP id EE08F3624DE; Mon, 7 Aug 2006 13:43:46 -0700 (PDT) Message-ID: <44D7A5F9.10706@adapt.com> Date: Mon, 07 Aug 2006 13:43:37 -0700 From: jason nordwick User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Judith Cc: pgsql-sql@postgresql.org Subject: Re: Change of data type References: <44D77A8C.9040303@correolux.com.mx> In-Reply-To: <44D77A8C.9040303@correolux.com.mx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/45 X-Sequence-Number: 26003 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 >