X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 19422D1DEF6 for ; Thu, 11 Dec 2003 15:25:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57464-09 for ; Thu, 11 Dec 2003 11:24:56 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id B39F9D1DEE2 for ; Thu, 11 Dec 2003 11:24:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 86AC61C438; Thu, 11 Dec 2003 17:29:04 +0200 (EET) Received: from andyy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with ESMTP id 65806173C7; Thu, 11 Dec 2003 17:29:04 +0200 (EET) Message-ID: <003201c3bffa$d3c35930$0b00a8c0@andyy> From: "Contact" To: "Chitta Ranjan Mishra" , References: <20031211051950.38379.qmail@web8002.mail.in.yahoo.com> Subject: Re: Help---- Urgent Date: Thu, 11 Dec 2003 17:24:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.5 tagged_above=0.0 required=5.0 tests=DEAR_SOMETHING, QUOTED_EMAIL_TEXT, REFERENCES X-Spam-Level: * X-Archive-Number: 200312/174 X-Sequence-Number: 11682 Create a new column alter add column varchar(25); Then copy the old column into the new column: update set = ; Drop the last column: alter drop column ; Rename the column: alter rename column to ; Take care for INDEXES if there are any. This should do it. Best regards. ----- Original Message ----- From: "Chitta Ranjan Mishra" To: Sent: Thursday, December 11, 2003 7:19 AM Subject: [ADMIN] Help---- Urgent > Dear Sir, > I wnat to alter the size of one of the column of a > table. How to do this in Postgres ? Plz help me. > It's very urgent... > > I tried with the following syntax : > but it failed.... > > alter table tablename modify(coumnname varchar(25)); > > it's very urgnet...plz reply soon.. > > Thanking you, > Regds > C.R.Mishra > > > > > ________________________________________________________________________ > Yahoo! India Mobile: Download the latest polyphonic ringtones. > Go to http://in.mobile.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org