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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -