Re: = or := ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: = or := ?
Дата
Msg-id 25180.1115646434@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: = or := ?  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-general
Michael Glaesemann <grzm@myrealbox.com> writes:
> On May 9, 2005, at 18:00, Zlatko Matic wrote:
>> This is a newbie question: what is the difference between using = and
>> := in plpgsql function ?

> In pl/pgsql,

> := is assignment
> = is a logical comparison for equality

It looks like the code will in fact allow you to spell an assignment
statement either way ... but I recommend following Michael's advice
for clarity.

            regards, tom lane

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

Предыдущее
От: "Sim Zacks"
Дата:
Сообщение: Re: function call error
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Booleans - Why in Postgres and not in Oracle or Mysql?