UPDATE using query; per-row function calling problem

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема UPDATE using query; per-row function calling problem
Дата
Msg-id 20110901220903.GA22775@campbell-lange.net
обсуждение исходный текст
Ответы Re: UPDATE using query; per-row function calling problem
Список pgsql-general
I'm doing an UPDATE something like this:

    UPDATE
        slots
    SET
        a = 'a'
        ,b = (SELECT uuid_generate_v1())
    WHERE
        c = TRUE;

Each updated row in slots is getting the same value for b. Is there a
way of getting a per-row value from uuid_generate_v1() without doing a
PL loop?

Regards
Rory

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

Предыдущее
От: Raghavendra
Дата:
Сообщение: Re: pgfoundry.org is not accessible
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: How to get around this limitation (ALTER DATABASE db SET search_path = ...)