Re: alter table
От | Andreas Kretschmer |
---|---|
Тема | Re: alter table |
Дата | |
Msg-id | 20060215185428.GB12551@KanotixBox обсуждение исходный текст |
Ответ на | alter table (Maciej Piekielniak <piechcio@isb.com.pl>) |
Ответы |
Re: alter table
|
Список | pgsql-sql |
Maciej Piekielniak <piechcio@isb.com.pl> schrieb: > Hello , > > How can i modify few fields with alter? > > ALTER TABLE fv_wystawione > ALTER id_fv SET DEFAULT nextval('id_fv_seq'::text), > ALTER imie SET DEFAULT ''; test=# create table xyz (id int not null); CREATE TABLE test=# create sequence xyz_seq; CREATE SEQUENCE test=# alter table xyz alter column id set default nextval('xyz_seq'); ALTER TABLE or: test=# drop TABLE xyz; DROP TABLE test=# create table xyz (id int not null, foo varchar); CREATE TABLE test=# alter table xyz alter column id set default nextval('xyz_seq'), alter column foo set default ''; ALTER TABLE HTH, Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknow) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
В списке pgsql-sql по дате отправления: