Re: alter table

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Maciej Piekielniak <piechcio(at)isb(dot)com(dot)pl>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: alter table
Date: 2006-02-16 00:54:10
Message-ID: 7F00B433-6977-4340-841A-2084DD9736D4@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Feb 16, 2006, at 3:11 , Maciej Piekielniak wrote:

> How can i modify few fields with alter?

I think you need to alter columns one at a time. If you need them to
go into effect at the same time, you can wrap the multiple ALTER
TABLE statements in a transaction. For example,

begin;
ALTER TABLE fv_wystawione ALTER id_fv SET DEFAULT nextval
('id_fv_seq'::text);
ALTER TABLE fv_wystawione ALTER imie SET DEFAULT '';
commit;

Michael Glaesemann
grzm myrealbox com

In response to

  • alter table at 2006-02-15 18:11:56 from Maciej Piekielniak

Browse pgsql-sql by date

  From Date Subject
Next Message AKHILESH GUPTA 2006-02-16 09:13:43 to count no of columns in a table
Previous Message Daniel Caune 2006-02-15 23:22:20 Re: How to force PostgreSQL using an index