Re: alter table

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: alter table
Дата
Msg-id 7F00B433-6977-4340-841A-2084DD9736D4@myrealbox.com
обсуждение исходный текст
Ответ на alter table  (Maciej Piekielniak <piechcio@isb.com.pl>)
Список 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 по дате отправления:

Предыдущее
От: "Daniel Caune"
Дата:
Сообщение: Re: How to force PostgreSQL using an index
Следующее
От: AKHILESH GUPTA
Дата:
Сообщение: to count no of columns in a table