Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

alter table question for 7.2


  • From: Matthias Leopold <matthias(at)aic(dot)at>
  • To: pgsql-novice(at)postgresql(dot)org
  • Subject: alter table question for 7.2
  • Date: Tue, 24 Mar 2009 18:21:36 +0100
  • Message-id: <49C916A0.5070006@aic.at> <text/plain>

hi,

can anyone tell me the right way to do something like

alter table foo add column bar int not null default '0';

in a postgresql 7.2 database?

all i managed to do was to add the column and alter it to have "default
'0'".
neither where the fields filled with "0" (like they are when i do this
in postgresql 8.1) nor did i manage to add the "not null" constraint.

thx for help
matthias



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group