Re: alter table - Mailing list pgsql-sql

From Michael Glaesemann
Subject Re: alter table
Date
Msg-id 7F00B433-6977-4340-841A-2084DD9736D4@myrealbox.com
Whole thread Raw
In response to alter table  (Maciej Piekielniak <piechcio@isb.com.pl>)
List 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





pgsql-sql by date:

Previous
From: "Daniel Caune"
Date:
Subject: Re: How to force PostgreSQL using an index
Next
From: AKHILESH GUPTA
Date:
Subject: to count no of columns in a table