X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AC86C475ADE for ; Fri, 18 Apr 2003 01:06:32 -0400 (EDT) Received: from embon.lipi.go.id (unknown [202.152.3.117]) by postgresql.org (Postfix) with ESMTP id C75B0475458 for ; Fri, 18 Apr 2003 01:06:26 -0400 (EDT) Received: from kulo-bd.lipi.go.id (kulo-bd.lipi.go.id [192.168.243.10]) by embon.lipi.go.id (8.11.6/8.11.6) with SMTP id h3I64w215767 for ; Fri, 18 Apr 2003 13:05:03 +0700 Received: FROM informatika.lipi.go.id BY kulo-bd.lipi.go.id ; Fri Apr 18 12:17:19 2003 +0700 Received: (qmail 18482 invoked by uid 399); 18 Apr 2003 05:10:39 -0000 Received: from unknown (HELO bukittinggi) (167.205.240.166) by 0 with SMTP; 18 Apr 2003 05:10:39 -0000 Message-ID: <003301c30569$43003d60$a6f0cda7@informatika.lipi.go.id> From: "Devi Munandar" To: Subject: change field type and length Date: Fri, 18 Apr 2003 12:13:34 +0700 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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Status: No, hits=-1.6 required=5.0 tests=BAYES_30 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/254 X-Sequence-Number: 8409 I've created table with postgresql, and so far so good, but I want to change Field type and field length, I've tried to find command line and documentation postgresql to change table field, but I can't get it. so there are any trip to change that field...? CREATE TABLE "dat_jab" ( "code_jab" numeric(2,0) NOT NULL, "nm_jab" varchar(25), CONSTRAINT "dat_jab_pkey" PRIMARY KEY ("code_jab") ); CREATE INDEX "dat_jab_code_jab_key" ON "dat_jab" ("code_jab"); *** want to change Field Type "code_jab" numeric(4.0) , and field name "nm_jab" -->"nm_cdjab" regards --dv