From: Rodrigo De Le� <rdeleonp@gmail.com>
To: Jon Horsman <horshaq@gmail.com>
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: Populate unique column with default value
Date: Mon, 1 Oct 2007 10:39:55 -0500
Message-ID: <a55915760710010839u5e11e850sa0850564f73eaf4f@mail.gmail.com> (raw)
In-Reply-To: <4f4c2a010710010824t7a2fbd59kb9102c879b389a5d@mail.gmail.com>
References: <4f4c2a010710010824t7a2fbd59kb9102c879b389a5d@mail.gmail.com>
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;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rdeleonp@gmail.com, horshaq@gmail.com
Subject: Re: Populate unique column with default value
In-Reply-To: <a55915760710010839u5e11e850sa0850564f73eaf4f@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox