Re: Populate unique column with default value - Mailing list pgsql-sql

From Rodrigo De Le�
Subject Re: Populate unique column with default value
Date
Msg-id a55915760710010839u5e11e850sa0850564f73eaf4f@mail.gmail.com
Whole thread Raw
In response to Populate unique column with default value  ("Jon Horsman" <horshaq@gmail.com>)
Responses Re: Populate unique column with default value
List pgsql-sql
On 10/1/07, Jon Horsman <horshaq@gmail.com> wrote:
> ... Is there an elegant way i can set the username
> to be the extension of the current row ...

UPDATE usertable
SET username = extension
WHERE username IS NULL;


pgsql-sql by date:

Previous
From: "Jon Horsman"
Date:
Subject: Re: Populate unique column with default value
Next
From: "Jon Horsman"
Date:
Subject: Re: Populate unique column with default value