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 835C59FB31F for ; Thu, 10 Aug 2006 16:49:46 -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 46008-06 for ; Thu, 10 Aug 2006 16:49:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by postgresql.org (Postfix) with ESMTP id 612799FA2A1 for ; Thu, 10 Aug 2006 16:49:35 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id n25so885207pyg for ; Thu, 10 Aug 2006 12:49:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PKkIYiZIAGdQkkOGepDt6ih6Rtzxru8l68wIdh5aJ78ssdCuFoiqhqtjduT7vKqkjU4hcw3hmOHUBFiWMhFixN8EhaJyAY3P8o1NpeJkllh2W0vIHn2xJor7/+/OJiFeEc/DO76+idCGr4QjqGHcra+8mOtoW89XgVw3y8DGN+o= Received: by 10.35.78.9 with SMTP id f9mr4437078pyl; Thu, 10 Aug 2006 12:49:34 -0700 (PDT) Received: by 10.35.61.12 with HTTP; Thu, 10 Aug 2006 12:49:33 -0700 (PDT) Message-ID: Date: Fri, 11 Aug 2006 00:49:33 +0500 From: "Shoaib Mir" To: "Kumar Dev" Subject: Re: Change of data type Cc: Judith , pgsql-sql@postgresql.org In-Reply-To: <9dafed310608071345p15d5bbafxba9acfddd116320f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3214_15931536.1155239373978" References: <44D77A8C.9040303@correolux.com.mx> <9dafed310608071345p15d5bbafxba9acfddd116320f@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.35 tagged_above=0 required=5 tests=AWL, HTML_50_60, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/71 X-Sequence-Number: 26029 ------=_Part_3214_15931536.1155239373978 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline You can do the following: ALTER TABLE table-name ALTER colum-name TYPE text; Thanks, -- Shoaib Mir EnterpriseDB (www.enterprisedb.com) On 8/8/06, Kumar Dev wrote: > > Use Alter table notebook from control center > right click on the table and open alter table notebook > you can drop a column or add a column or change the datatype > > Kumar > > > On 8/7/06, 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 > > > > > > -- > Kumar > DB2 DBA & SAP Basis professional > ------=_Part_3214_15931536.1155239373978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You can do the following:

ALTER TABLE table-name ALTER colum-name TYPE text;


Thanks,
--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)



On 8/8/06, Kumar Dev <kumardb2@gmail.com> wrote:
Use Alter table notebook from control center
right click on the table and open alter table notebook
you can drop a column or add a column or change the datatype
 
Kumar

 
On 8/7/06, Judith <jaltamirano@correolux.com.mx > 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



--
Kumar
DB2 DBA & SAP Basis professional




------=_Part_3214_15931536.1155239373978--