Re: Populate unique column with default value

Поиск
Список
Период
Сортировка
От Jon Horsman
Тема Re: Populate unique column with default value
Дата
Msg-id 4f4c2a010710010851y29d02056u6c3224ff38ec5b0f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Populate unique column with default value  ("Rodrigo De Le�" <rdeleonp@gmail.com>)
Список 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;

Hmm, that simple eh, don't I feel stupid =)

Thanks a ton for the quick response.

Jon.


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Rodrigo De Le�"
Дата:
Сообщение: Re: Populate unique column with default value
Следующее
От: Enrico Weigelt
Дата:
Сообщение: Finding broken regex'es