| От | David |
|---|---|
| Тема | In plpgsql: difference between := and = |
| Дата | |
| Msg-id | 20060413001926.GA4285@localhost.localdomain обсуждение исходный текст |
| Ответы |
Re: In plpgsql: difference between := and =
|
| Список | pgsql-novice |
I know I've seen this somewhere, but I've searched the docs and can't seem to find it. I know that := is assignment, and, from the docs, (and experience), know that it does a "SELECT" to return the assigned value. I was experimenting with triggers, in the body, I was trying something like: BEGIN NEW.name := get_who(NEW.name); RETURN NEW; END where get_who() is a stored procedure. After going through some of my pgsql- mail-archives, I saw a similar example where they used simply "=". After I did this, it worked. Could someone explain the why's and the difference? I know I've seen this explained before, but where, I don't know...
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера