Maciej Piekielniak <[EMAIL PROTECTED]> 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° ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match