Re: Update with a Repeating Sequence

From: Bill Thoen <bthoen(at)gisnet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Update with a Repeating Sequence
Date: 2008-10-14 16:21:44
Message-ID: 48F4C718.3070308@gisnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Grzegorz Jas'kiewicz wrote:
>
> alter table foo add newid sequencial;
>
> alter table foo drop field_id;
>
> alter table foo rename newid to field_id;
>
I can't do that; I need to preserve the field_id values.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2008-10-14 16:25:46 Re: Update with a Repeating Sequence
Previous Message Grzegorz Jaśkiewicz 2008-10-14 16:11:13 Re: Update with a Repeating Sequence