Re: Populate unique column with default value

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


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

Предыдущее
От: "Jon Horsman"
Дата:
Сообщение: Re: Populate unique column with default value
Следующее
От: "Jon Horsman"
Дата:
Сообщение: Re: Populate unique column with default value