Re: identity columns ?

From: "PGMailList" <pgmail(at)pgexplorer(dot)com>
To: "Chris" <chris(at)netlabz(dot)com>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: identity columns ?
Date: 2002-04-05 10:03:39
Message-ID: 001501c1dc89$29a36950$05faa8c0@edios
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> 2. We're using pg-admin to work with postgres. It doesn't seem possible to
> modify tables in pg-admin once you've created them, you have to delete and
> add. Is there another pg client that supports modifying tables ?

Depends on what you want to change:
Drop a column -
Sorry - Drop table and recreate.
Add Column -
ALTER TABLE mytable ADD COLUMN mycolumn int4;
Change Column Name -
ALTER TABLE mytable RENAME COLUMN mycolumn TO newcolumn;

http://www.pgexplorer.com
GUI Postgres TOOL

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-04-05 16:21:53 Re: identity columns ?
Previous Message Ugly Hippo 2002-04-04 23:18:40 Re: Export query result to text file?