How do I change a setting in a postgresql -
i want add default field in table has been created. possible make change without having reinitialize database entirely? i'm trying avoid having recreate test data.
assuming have table like:
create table x (a int, b int, c text); and want set default b 5. can say:
alter table x alter column b set default 5;
Comments
Post a Comment